You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The placement of the minus sign when factoring multivariate polynomials over QQ lost consistency at some point between Sage 9.2 and 9.4.
Define a multivariate polynomial ring:
sage: R.<ax,bx,ay,by,Az,Bz,Ai,Bi> = PolynomialRing(QQ, 8, order='invlex')
sage: R
Multivariate Polynomial Ring in ax, bx, ay, by, Az, Bz, Ai, Bi over Rational Field
slel
changed the title
Inconsistent position of sign in factorization of rational polynominals
Improve sign consistency in rational polynomial factorization
Feb 4, 2022
The placement of the minus sign when factoring multivariate polynomials over
QQ
lost consistency at some point between Sage 9.2 and 9.4.Define a multivariate polynomial ring:
Then, in Sage 9.2:
while in Sage 9.4 or Sage 9.5:
This broke our code in
It would be good to output a canonical form. A natural choice seems to make the leading coefficient of each factor positive.
It may then also be good to document that the factors will be primitive.
The
invlex
monomial ordering is not the culprit: the inconsistency also occurs withlex
(see one comment down at the GitHub link).Component: factorization
Issue created by migration from https://trac.sagemath.org/ticket/33283
The text was updated successfully, but these errors were encountered: