Ask Your Question

irreducibility of a polynomial

asked 2016-07-26 22:54:08 +0100

nebuckandazzer gravatar image

updated 2016-07-26 22:54:37 +0100

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 13:22:51 +0100 )edit

thanks @slelievre

nebuckandazzer gravatar imagenebuckandazzer ( 2016-10-20 23:21:28 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-26 23:51:48 +0100

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 22:54:08 +0100

Seen: 5,797 times

Last updated: Jul 26 '16