Updates:
        Status: Started
        Owner: mattpap
        Labels: NeedsReview Milestone-Release0.7.0

Comment #1 on issue 1974 by mattpap: Poly(1).subs traceback
http://code.google.com/p/sympy/issues/detail?id=1974

Simple fix to this issue is available on polys10 branch commit ad13be, e.g.:

In [1]: Poly(x, x).subs(x, y)
Out[1]: Poly(y, y, domain='ZZ')

In [2]: Poly(1, x).subs(x, y)
Out[2]: Poly(1, y, domain='ZZ')

To simplify logic, in some cases, subs() will return an expression:

In [3]: Poly(x*y).subs(x, y)
Out[3]:
 2
y

Note that this might be improved in future (to return a polynomial with ZZ domain).

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