Ask Your Question
1

irreducibility of a polynomial

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

nebuckandazzer gravatar image

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

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

Comments

1

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 +0200 )edit

thanks @slelievre

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

1 Answer

Sort by ยป oldest newest most voted
2

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

vdelecroix gravatar image

There is

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

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()
False
sage: (2*xQQ).is_irreducible()
True
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

Stats

Asked: 2016-07-26 22:54:08 +0200

Seen: 2,920 times

Last updated: Jul 26 '16