Comment #38 on issue 1598 by mattpap: New polynomials manipulation module
http://code.google.com/p/sympy/issues/detail?id=1598
> Also, Poly.terms() is giving out monom, coeff whereas the old
> Poly.iter_terms()
> gave out coeff, monom...is this intentional?
Yes, because this is coherent with dictionary representation, e.g. when
iterating:
for monom, coeff in poly.terms():
pass
for monom, coeff in poly.as_dict().iteritems():
pass
Also now you can easily do dict(poly.terms()).
> NotImplementedError: if this happened we need an extra loop here
This means that parameters for Wang's algorithm were set too low and the
algorithm
wasn't able to find a suitable substitution integers for all but the main
variable.
If you run factor() several times for this example, you'll see that it
fails only
from time to time. In my local repo I fixed this already. I just run the
algorithm
recursively, improving parameters if needed, until it returns without error.
--
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.