Advertisement
Gamerkin

ex2 kispython ternary

Feb 17th, 2024
951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from math import atan, log
  2.  
  3.  
  4. def main(y):
  5.     return (22 * (50 * y ** 3 + 91 + 14 * y) ** 7 -
  6.             (y ** 3 - y - 65 * y ** 2) ** 6 -
  7.             23 * (y ** 2 - 1 - 38 * y) ** 2) if y < 30 else \
  8.            (27 * (59 * y ** 3) ** 5 +
  9.             atan(59 * y - y ** 2 / 94 - 1) ** 4 +
  10.             30 * log(y ** 2, 2) ** 3) if 30 <= y < 72 else (62 * y ** 5 +
  11.                                                             1 + y ** 3 / 39)
  12.  
  13. print(main(20))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement