| 1 | initial version |
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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.