Status: Accepted
Owner: asmeurer
CC: [email protected]
Labels: Type-Defect Priority-Medium Polynomial
New issue 2329 by asmeurer: Should Poly use an algebraic domain by default?
http://code.google.com/p/sympy/issues/detail?id=2329
In [1]: Poly(t**2 + I, t, domain='ZZ[sqrt(-1)]')
Out[1]: Poly(t**2 + I, t, domain='ZZ[I]')
In [2]: Poly(t**2 + sqrt(2), t)
Out[2]: Poly(t**2 + 2**(1/2), t, domain='EX')
In [3]: Poly(t**2 + I, t)
Out[3]: Poly(t**2 + I, t, domain='EX')
In [4]: Poly(t**2 + I, t, domain='ZZ[sqrt(-1)]')
Out[4]: Poly(t**2 + I, t, domain='ZZ[I]')
In [6]: Poly(t**2 + sqrt(2), t, domain='ZZ[sqrt(2)]')
Out[6]: Poly(t**2 + 2**(1/2), t, domain='ZZ[2**(1/2)]')
I don't know too much about the state of algebraic domains in the polys to
know if there is a good reason for this or not, but it seems to me that [2]
and [3] should instead return what [4] and [6] return, respectively.
Mateusz, is there a good reason why it uses EX instead of an algebraic
domain by default?
--
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.