Ask Your Question

irreducibility of a polynomial

asked 2016-07-26 15:54:08 -0600

nebuckandazzer gravatar image

updated 2016-07-26 15:54:37 -0600

If f $f(x)$ is a polynomial, i know that the command $f.factor()$ gives the factorization of f. But I am interested in knowing whether the polynomial is irreducible or not, not its factors. Is there any command for that ?

edit retag flag offensive close merge delete



To display inline code, surround it within backticks .... This way you could get f.factor() instead of $f.factor()$.

slelievre gravatar imageslelievre ( 2016-10-18 06:22:51 -0600 )edit

thanks @slelievre

nebuckandazzer gravatar imagenebuckandazzer ( 2016-10-20 16:21:28 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-26 16:51:48 -0600

vdelecroix gravatar image

There is

sage: R = ZZ['x']
sage: x = R.gen()
sage: (x^2 + 2*x + 1).is_irreducible()
sage: (x^2 - x + 1).is_irreducible()

Note that the irreducibility depends on the base ring (the integers in the example above).

sage: xZZ = polygen(ZZ)
sage: xQQ = polygen(QQ)
sage: (2*xZZ).is_irreducible()
sage: (2*xQQ).is_irreducible()
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: 2016-07-26 15:54:08 -0600

Seen: 2,515 times

Last updated: Jul 26 '16