Comment #36 on issue 1598 by smichr: New polynomials manipulation module
http://code.google.com/p/sympy/issues/detail?id=1598
Also, is there a way to make monic work even when coefficients don't reduce
to
multiples of the leading coefficient?
###
>>> Poly(3*x**3+5*x**2+7*x+11,x).monic()
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Documents and Settings\chris\sympy\sympy\polys\polytools.py",
line 1014,
in monic
result = f.rep.monic()
File "C:\Documents and Settings\chris\sympy\sympy\polys\polyclasses.py",
line 1370,
in monic
return f.per(dmp_ground_monic(f.rep, f.lev, f.dom))
File "C:\Documents and Settings\chris\sympy\sympy\polys\densetools.py",
line 1391,
in dmp_ground_monic
return dup_monic(f, K)
File "C:\Documents and Settings\chris\sympy\sympy\polys\densetools.py",
line 1385,
in dup_monic
return dup_quo_ground(f, lc, K)
File "C:\Documents and Settings\chris\sympy\sympy\polys\densearith.py",
line 143,
in dup_quo_ground
return [ K.quo(cf, c) for cf in f ]
File "C:\Documents and Settings\chris\sympy\sympy\polys\algebratools.py",
line 387,
in quo
raise ExactQuotientFailed('%s does not divide %s in %s' % (b, a, self))
ExactQuotientFailed: 3 does not divide 5 in ZZ
###
--
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.