from math import sin, cos
x = int(input())
if x < -2:
y = 4*sin(x) + cos(x)
elif x > -2:
y = 8*sin(x) - 7*cos(x)
else:
y = 32*cos(x) + 8*sin(x)
print(y)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from math import sin, cos
x = int(input())
if x < -2:
y = 4*sin(x) + cos(x)
elif x > -2:
y = 8*sin(x) - 7*cos(x)
else:
y = 32*cos(x) + 8*sin(x)
print(y)