First time here? Check out the FAQ!

Ask Your Question
2

LaurentPolynomial can't factor constants

asked 6 years ago

liu.henry.hl gravatar image

updated 2 years ago

tmonteil gravatar image

Hi all,

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

sage: R.<x,y> = LaurentPolynomialRing(QQ)
sage: R.one().factor()
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?

Thanks,

Henry

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 6 years ago

slelievre gravatar image
Preview: (hide)
link

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

Stats

Asked: 6 years ago

Seen: 811 times

Last updated: Dec 24 '18