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 30-05-23, 6:41 p.m. Atharva_217

Answers:

please initialize sine before executing the sine command and also follow the steps given in the tutorial.
18-06-24, 12:24 p.m. chitra@devi


Click here to reply/comment online