Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
1

irreducibility of a polynomial

asked 8 years ago

nebuckandazzer gravatar image

updated 8 years ago

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 ?

Preview: (hide)

Comments

1

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

slelievre gravatar imageslelievre ( 8 years ago )

thanks @slelievre

nebuckandazzer gravatar imagenebuckandazzer ( 8 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 8 years ago

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
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: 8 years ago

Seen: 6,973 times

Last updated: Jul 26 '16