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

asked 10 years ago

dkad gravatar image

updated 10 years ago

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.

Preview: (hide)

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 ( 10 years ago )

I downgraded because important information was missing.

rws gravatar imagerws ( 10 years ago )

@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 ( 10 years ago )

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

ron.bannon gravatar imageron.bannon ( 10 years ago )