Comment #7 on issue 1304 by asmeurer: Integrate sqrt(x**2 + y**2) fails
http://code.google.com/p/sympy/issues/detail?id=1304

So the post in comment 1 confuses real and Real. If a Symbol is real, x.is_real should be True, but Real is the real number class, so x.is_Real should be false. The problem is using x**1/2 instead of x**S(1)/2 or some similar. Also, Rational(3/2) == Rational(1.5) returns 1 instead of 3/2 for some reason. In comment 5, it behaves wrong for the same reason, using 1/2 instead of S(1)/2. The use of future division in isympy vs. regular python is also probably part of it. By the way, symbols are assumed to be complex by default, not real.

There is no longer a traceback for integrate(sqrt(x**2 + y**2), x), though it still can't do it. I am not sure what the patch from comment 2 is supposed to do. It has no effect on the integrals given. asinh(sqrt(-x)) does not
auto-simplify to asin(sqrt(x)) (nor should it, though they are equivalent).

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to