integrate(sin(x),x) doesn't work

asked 2014-08-28 18:07:51 -0500

dkad gravatar image

updated 2014-08-29 05:15:09 -0500

tmonteil gravatar image

Typing integrate(sin(x),x) in the workbook gives the correct answer -cos(x) In the shell I get

sage: integrate(sin(x),x)
TypeError                                 Traceback (most recent call last)
<ipython-input-1-996dddd859a4> in <module>()
----> 1 integrate(sin(x),x)

/opt/sage-6.3/local/lib/python2.7/site-packages/sage/symbolic/ in sage.symbolic.expression.Expression.__float__ (build/cythonized/sage/symbolic/expression.cpp:8129)()

TypeError: unable to simplify to float approximation

I get this error in binary downloads sage-6.2, sage-6.3 and in self compiled sage-6.3.

edit retag flag offensive close merge delete



It works well for me (compiled from sources). Could you give more details about your distribution's version, the binary build you used, etc?

tmonteil gravatar imagetmonteil ( 2014-08-28 18:34:11 -0500 )edit

I downgraded because important information was missing.

rws gravatar imagerws ( 2014-08-30 00:37:15 -0500 )edit

@rws: Please do not downvote questions, especially those from newbies. While I agree that the question lacks the most important detail, we should be a welcoming community. Asking for this information as @tmonteil has rightly done is the way. If we get no response after a couple of months, we could close the question as being too localised.

KnS gravatar imageKnS ( 2014-09-01 08:50:43 -0500 )edit

Try to reset Sage by typing reset(), then try the command again.

ron.bannon gravatar imageron.bannon ( 2014-09-04 18:56:30 -0500 )edit