saving . . . saved Sin not defined has been deleted. Sin not defined has been hidden .
Sin not defined
Title
Question
<span style="font-size: 15px;">np.linspace(-np.pi,np.pi,100)</span>
<span style="font-size: 15px;">plt.plot((sin(x)*sin(x))/x)</span>
<span style="font-size: 15px;">
</span>
<span style="font-size: 15px;">
</span>
<pre style="overflow: auto; font-family: monospace; padding: 1px 0px; margin-bottom: 0px; line-height: inherit; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); border-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline;"><span class="ansi-red-intense-fg ansi-bold" style="color: rgb(178, 43, 49); font-weight: bold;">NameError</span> Traceback (most recent call last) Cell <span class="ansi-green-intense-fg ansi-bold" style="color: rgb(0, 116, 39); font-weight: bold;">In[2], line 2</span> <span class="ansi-green-fg" style="color: rgb(0, 162, 80);"> 1</span> np<span style="color: rgb(98, 98, 98);">.</span>linspace(<span style="color: rgb(98, 98, 98);">-</span>np<span style="color: rgb(98, 98, 98);">.</span>pi,np<span style="color: rgb(98, 98, 98);">.</span>pi,<span style="color: rgb(98, 98, 98);">100</span>) <span class="ansi-green-intense-fg ansi-bold" style="color: rgb(0, 116, 39); font-weight: bold;">----> 2</span> plt<span style="color: rgb(98, 98, 98);">.</span>plot((<span class="ansi-yellow-bg" style="background-color: rgb(221, 182, 43);">sin</span>(x)<span style="color: rgb(98, 98, 98);">*</span>sin(x))<span style="color: rgb(98, 98, 98);">/</span>x) <span class="ansi-red-intense-fg ansi-bold" style="color: rgb(178, 43, 49); font-weight: bold;">NameError</span>: name 'sin' is not defined</pre>
<span style="font-size: 15px;">
</span>

Python-3.4.3 Using-plot-command-interactively 09-10 min 0-10 sec 30-05-23, 6:41 p.m. Atharva_217

Answers:

Log-in to answer to this question.