saving . . . saved plot() function error has been deleted. plot() function error has been hidden .
plot() function error
Title
Question
Throwing error for x value not found

Python-3.4.3 Using-plot-command-interactively 08-09 min 10-20 sec 25-05-19, 12:04 p.m. thirukumar

Answers:

Please mention the tutorial title, number and the video timstamp.
25-05-19, 12:06 p.m. iakashchavan
<h4 class="page-title">Using plot command interactively,</h4>

plot((sin(x)*sin(x))/x)
25-05-19, 12:13 p.m. thirukumar
You need to initialize the value of x. and then type plot((sin(x)*sin(x))/x).
25-05-19, 12:39 p.m. iakashchavan

Login to add comment




Please Answer this , x is not defined

In [19]: plot (sin(x)*sin(x))/x
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-19-a04439361098> in <module>
----> 1 plot (sin(x)*sin(x))/x

TypeError: unsupported operand type(s) for /: 'Line2D' and 'float'

In [20]: plot (sin(x)*sin(x))
Out[20]: [<matplotlib.lines.Line2D at 0x468e790>]

In [21]:
22-06-19, 11:37 a.m. Sakina52


Log-in to answer to this question.