 #1
Arman777
Gold Member
 1,904
 147
Python:
r = np.arange(0,400,0.1)
t = np.cos(r)+10
plt.plot(r,t)
Attachments

72.5 KB Views: 237
r = np.arange(0,400,0.1)
t = np.cos(r)+10
plt.plot(r,t)
Theres a syntax error in your code. Also no, I mean that I need to write a cos function that will look like my graph. Or cos^2x function. Both are okay for meDo you mean
change t = np.cos(r)+10
to t = np.(cos(r) + 1) edit: or t = 12*(np.cos(r) + 1) ; if np. is not the amplitude
so that the lower extreme is on the y=0 axis?
r = np.arange(0,400,0.4)
t = (11*np.cos(r/28.7))+11
plt.plot(r,t)