On Wed, May 16, 2012 at 9:05 AM, Matt Moelter <[email protected]> wrote:
> Thanks for sympy, I use it myself and have my physics students use it
> as well.
>
> I think there is a bug in the "integrate" command.
>
> In [5]: integrate(sqrt(1-cos(x)),x)
> Out[5]: Integral((-cos(x) + 1)**(1/2), x)
It is currently an unrecognized integral.
>
> In [6]: integrate((-cos(x) + 1)**(1/2), x)
> Out[6]: x
You apparently don't have __future__'s division in action so the 1/2
gave 0 and integrate(1) == x. This is a "gotcha"; when you enter a raw
fraction you must do so as S(1)/2 or Rational(1, 2) or S('1/2').
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.