Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x, d, q, n = 0.3, -0.01, 1.1, 2
- a = (1 / 5) * math.atan(x)
- y = 0
- if a == 2 or a == 3:
- y = d ** 2 * x ** 3 + q * x ** 2 - n
- elif (a > 0 and a < 0.1) or a == 1:
- y = math.sqrt(math.fabs(d * x)) * math.sin(x)
- else:
- y = math.exp(x - n) * math.log1p(math.fabs(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement