error
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
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
what should be the value of x
22-06-19, 12:03 p.m.
Rajneesh.ch
x should be a sequence of values
22-06-19, 3:01 p.m.
ankitrj.iitb
try x = linspace(1,100, 50)
I just replace X with t, what we already used.