Updates:
        Status: Started
        Owner: ---
        Labels: EasyToFix

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

That's a good catch. The solution should be something like:

diff --git a/sympy/integrals/risch.py b/sympy/integrals/risch.py
index 81e2b7a..23d8bd6 100644
--- a/sympy/integrals/risch.py
+++ b/sympy/integrals/risch.py
@@ -187,11 +187,8 @@ def heurisch(f, x, **kwargs):
                      if g.exp.is_Rational and g.exp.q == 2:
                          M = g.base.match(a*x**2 + b)

-                        if M is not None and M[b].is_positive:
-                            if M[a].is_positive:
-                                terms.add(asinh(sqrt(M[a]/M[b])*x))
-                            elif M[a].is_negative:
-                                terms.add(asin(sqrt(-M[a]/M[b])*x))
+                        if M is not None:
+                            terms.add(asinh(sqrt(M[a]/M[b])*x))
          else:
              terms |= set(hints)

and sqrt together with hyperbolic sine should do the rest (simplification).

So, this one is easy to fix (tests are needed). Unfortunately, this is not  
the case
with the other mentioned integral.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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