Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. A=B=1
  2. t=np.linspace(0, 2*np.pi+0.1, 1000)
  3.  
  4. #1. α = 4 β = 3
  5. x1=A*np.sin(4*t)
  6. y1=B*np.sin(3*t)
  7.  
  8. #2. α = 6 β = 3
  9. x2=A*np.sin(6*t)
  10. y2=B*np.sin(3*t)
  11.  
  12. #3. α = 2 β = 5
  13. x3=A*np.sin(2*t)
  14. y3=B*np.sin(5*t)
  15.  
  16.  
  17. plt.subplot(131)
  18. plt.plot(x1, y1, "b-")
  19. plt.show()
  20.  
  21. plt.subplot(132)
  22. plt.plot(x2, y2, "r-")
  23. plt.show()
  24.  
  25. plt.subplot(133)
  26. plt.plot(x3, y3, "g-")
  27. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement