value of x
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:

it is showing 100 values between -1 to 1.
what is your error?please post that
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


Click here to reply/comment online