(sin(x)*sin(x))/x not working in canopy
Title
Question
I get an error message, "TypeError", with a traceback. It says "unsupported operand type(s) for /: 'Line2D' and 'float'.
Is this command not expected to work in Enthought's canopy?
Is this command not expected to work in Enthought's canopy?
Python Using-the-plot-command-interactively 07-08 min 10-20 sec
Answers:
<span style="line-height: 21.4285717010498px;">Dear User,</span>
The error message has nothing to do with Enthought's canopy. It will show you the same error for any other ipython as well if you don't provide brackets to entire calculation.
Please try plot((sin(x)*sin(x))/x). This will not show you the error message.
Hope this helps.
Thanks.
Login to add comment