Updates:
Cc: matt...@gmail.com
Labels: Polynomial
Comment #1 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
Well, here's where integrate(1/(x**2 + 16), x) diverges from
integrate(1/(x**2 + 15), x):
In [1]: f = Poly(x, x)
In [2]: g = Poly(sqrt(15), x)
In [3]: f
Out[3]: Poly(x, x, domain='ZZ')
In [4]: g
Out[4]: Poly(15**(1/2), x, domain='EX')
In [5]: f.div(g)
Out[5]: (Poly(15**(1/2)/15*x, x, domain='EX'), Poly(0, x, domain='EX'))
In [6]: f1, g1 = Poly(x, x), Poly(4, x)
In [7]: f1
Out[7]: Poly(x, x, domain='ZZ')
In [9]: g1
Out[9]: Poly(4, x, domain='ZZ')
In [10]: f1.div(g1)
Out[10]: (Poly(0, x, domain='ZZ'), Poly(x, x, domain='ZZ'))
(it's in log_to_atan()). Is this issue 2031 again? I don't want to look
at it any more tonight. There's probably a really easy fix for this, but
it's been so long since I've worked with the polys that I've forgotten what
it would be. div is only being used here to check if B|A. Is there a
better way to do that?
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.