saving . . . saved error has been deleted. error has been hidden .
error
Title
Question
plot(sin(x)*sin(x))/x

showing error as " name x is not defined"

Python-3.4.3 Using-plot-command-interactively 08-09 min 20-30 sec 22-06-19, 11:54 a.m. feridoz

Answers:

Please ensure that you have declared the value of x before you run the plot command. Also make sure that you close the round brackets for the plot command correctly

22-06-19, 12:02 p.m. ankitrj.iitb
what should be the value of x
22-06-19, 12:03 p.m. Rajneesh.ch
x should be a sequence of values

try x = linspace(1,100, 50)
22-06-19, 3:01 p.m. ankitrj.iitb

Login to add comment


I just replace X with t, what we already used.
22-06-19, 12:14 p.m. PRIYASWAMINATHAN


Log-in to answer to this question.