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

asked 2014-08-29 01:07:51 +0100

dkad gravatar image

updated 2014-08-29 12:15:09 +0100

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/expression.so 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

Comments

2

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-29 01:34:11 +0100 )edit

I downgraded because important information was missing.

rws gravatar imagerws ( 2014-08-30 07:37:15 +0100 )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 15:50:43 +0100 )edit

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

ron.bannon gravatar imageron.bannon ( 2014-09-05 01:56:30 +0100 )edit