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.

Here is my session using IPython

--------------------------------

IPython 0.13.dev -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import sympy

In [2]: print(sympy.__version__)
0.7.1

In [3]: from sympy import symbols, integrate, cos, sqrt

In [4]: x = symbols('x')

In [5]: integrate(sqrt(1-cos(x)),x)
Out[5]: Integral((-cos(x) + 1)**(1/2), x)

In [6]: integrate((-cos(x) + 1)**(1/2), x)
Out[6]: x


It seemed there was an issue with "sqrt" so I did it again with
"**(1/2)"

I did it by hand and got: 2 * sqrt(2) * (-cos(x/2)

Matt

-- 
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.

Reply via email to