Advertisement
Danila_lipatov

kop-3

Apr 15th, 2024
740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. m=1200
  4. n=1200
  5. x0=0.3
  6. L=np.full(m*n,0.00000)
  7. Y=np.full(m*n,0.00000)
  8. l=-0.1326
  9. I =[i for i in range(n)]
  10. J =[j for j in range(m)]
  11. for j in J:
  12.     xi=x0
  13.     for i in I:
  14.         xi= -(31.3344 * l) + (11.24 * l * xi) - (l * xi * xi)
  15.         L[m*(j-1)+i-1]=l
  16.         Y[m*(j-1)+i-1]=xi
  17.     x0=xi
  18.     print(l)
  19.     l += 0.00013
  20. print(Y)
  21. print(L)
  22. plt.plot(L,Y,ls=" ", marker=",")
  23. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement