Advertisement
sve_vash

Untitled

May 31st, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import math
  3.  
  4. x_def = [pow(math.pi, 2) / 2]
  5. y_def = [2 * math.pi]
  6. h = -0.0001
  7. i = 0
  8. while 1:
  9. if x_def[i] < math.e:
  10. break
  11. x_def.append(x_def[i] + h)
  12. y_def.append((pow(math.tan(math.cos(x_def[i] * y_def[i] * y_def[i])), 2) + 1) / (math.sin(x_def[i] / y_def[i])))
  13. i += 1
  14. print(y_def[len(y_def) - 1])
  15. plt.plot(x_def, y_def)
  16. plt.show()
  17.  
  18.  
  19. решение: y(e) = -6.660331226646006
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement