Ask Your Question

LaurentPolynomial can't factor constants

asked 2018-12-23 15:28:33 -0500

liu.henry.hl gravatar image

updated 2018-12-24 04:49:22 -0500

tmonteil gravatar image

Hi all,

Many LaurentPolynomials throw errors when I try to factor them. For example:

sage: R.<x,y> = LaurentPolynomialRing(QQ)
AttributeError: ...
sage: (x^-1).factor()
AttributeError: ...

This seems to come from the unit part of Polynomial.factor() sometimes (incorrectly) living in Integer Ring, and sometimes (correctly) living in whatever self.parent() is.

Is this intentional or a bug?



edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-12-24 03:19:51 -0500

slelievre gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-12-23 15:28:33 -0500

Seen: 90 times

Last updated: Dec 24 '18