Comment #5 on issue 2315 by asmeurer: integrate(1/(x**2 + n**2, x) failure,
where n is an integer
http://code.google.com/p/sympy/issues/detail?id=2315
This also fixes it:
diff --git a/sympy/integrals/rationaltools.py
b/sympy/integrals/rationaltools.py
index c6fabbb..f67f4b2 100644
--- a/sympy/integrals/rationaltools.py
+++ b/sympy/integrals/rationaltools.py
@@ -212,7 +212,7 @@ def log_to_atan(f, g):
if f.degree() < g.degree():
f, g = -g, f
- p, q = f.div(g)
+ p, q = f.to_field().div(g)
if q.is_zero:
return 2*atan(p.as_basic())
I think that was the fix that Mateusz recommended when I had a similar
problem, but, again, let's wait to see what Mateusz says.
--
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.