Advertisement
sve_vash

Untitled

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