Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import pylab as plt
- def cannabis(phi):
- return 1+np.sin(phi)*(1+0.9*np.cos(8*phi))*(1+0.1*np.cos(24*phi))
- phi = np.arange(0,360,0.1)
- r = cannabis(phi)
- x = r*np.cos(phi)
- y = r*np.sin(phi)
- plt.plot(x,y,'g')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement