Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import math
  2.  
  3. x, d, q, n = 0.3, -0.01, 1.1, 2
  4.  
  5. a = (1 / 5) * math.atan(x)
  6. y = 0
  7. if a == 2 or a == 3:
  8.     y = d ** 2 * x ** 3 + q * x ** 2 - n
  9. elif (a > 0 and a < 0.1) or a == 1:
  10.     y = math.sqrt(math.fabs(d * x)) * math.sin(x)
  11. else:
  12.     y = math.exp(x - n) * math.log1p(math.fabs(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement