0

Using Plot Command Interactively

While performing the Exercise 1, I got the following error. Please tell me how to resolve it. Thanks

Traceback (most recent call last)

<ipython-input-21-85e7860a2ace> in <module>

----> 1 plot(sin(x)*sin(x))/x

Python

0

Plesae use the brackets correctly. plot is a function and hence needs a set of opening and closing round braces. the correct statement will be : plot( ( sin( x ) * sin( x ) ) / x )

Login to add comment