Advertisement
Lavig

Практична робота №3_1

Oct 12th, 2022 (edited)
224
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. def skip():
  3.     print ("_" * 60)
  4.     print ("_" * 60)
  5. skip()
  6. # Четвертий варіант
  7. def y():
  8.     a = 14.8
  9.     e = math.e
  10.     x =  e**a
  11.     if x >= 1:
  12.         print("y =", e ** (-x + 2) + a)
  13.     else:
  14.         print("y =", (math.sin(x + 3.2)) / (a + 3))
  15. y()
  16. skip(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement