Sin not defined
np.linspace(-np.pi,np.pi,100)
plt.plot((sin(x)*sin(x))/x)
NameError Traceback (most recent call last) Cell In[2], line 2 1 np.linspace(-np.pi,np.pi,100) ----> 2 plt.plot((sin(x)*sin(x))/x) NameError: name 'sin' is not defined
Python-3.4.3 Using-plot-command-interactively 09-10 min 0-10 sec
Answers:
please initialize sine before executing the sine command and also follow the steps given in the tutorial.