Updates:
        Labels: -NeedsReview PassedReview

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

The way it is implemented, it needs to know the sign of z**2 (so it knows whether to return an asinh or asin). The patch mentioned by comment 8 adds a test of this, and it is +1 (I have pushed it in).

In [1]: z = Symbol('z', positive=True)

In [2]: integrate(sqrt(x**2 + z**2), x)
Out[2]:
 2      ⎛x⎞        ⎽⎽⎽⎽⎽⎽⎽⎽⎽
z ⋅asinh⎜─⎟       ╱  2    2
        ⎝z⎠   x⋅╲╱  x  + z
─────────── + ──────────────
     2              2


Ideally, this would return the result with the logarithm, but that would require some more advanced algebraic integration machinery.

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