saving . . . saved value of x has been deleted. value of x has been hidden .
value of x
Title
Question
what should be the value of x in the given problem i have given the value as x=linspace(-1,1,100) but it is giving the plot with errors


Python-3.4.3 Using-plot-command-interactively 08-09 min 10-20 sec 22-06-19, 11:58 a.m. krutika.chhajed@gmail.com

Answers:

<span style="background-color: rgb(250, 250, 250);">it is showing 100 values between -1 to 1.</span>
<span style="background-color: rgb(250, 250, 250);">what is your error?please post that</span>
22-06-19, 12:01 p.m. PriyaBhatnagar
TypeError: unsupported operand type(s) for /: 'Line2D' and 'float' 
i got this error

22-06-19, 12:05 p.m. krutika.chhajed@gmail.com
Maam, your plot command is incorrect.

You are using plot (sin(x)*sin(x))/x

You should be closing the brackets correctly and using this instead plot ( (sin(x)*sin(x))/x ) [please note the difference in brackets compared to previous commands]
22-06-19, 12:19 p.m. ankitrj.iitb

Login to add comment


Log-in to answer to this question.