[GAP Forum] Roots of polynomials

Dima Pasechnik dmitrii.pasechnik at cs.ox.ac.uk
Sat Mar 28 09:27:57 GMT 2015


Dear Kashyap,

On Sat, Mar 28, 2015 at 11:35:53AM +0530, Dr. Kashyap Rajeevsarathy wrote:
> How do we make GAP display the irrational roots of a single-variable
> polynomial that has only real roots? The functions "RootsOfPolynomial" and
> "RootsOfUPol" display only the rational roots as a list, and using the
> string "split" doesn't help either.

you can use factorisation over a field to find roots in this field.
E.g.
gap> x:=Indeterminate(Rationals);;
gap> Factors(PolynomialRing(CF(3)),x^12-1);


HTH,
Dima




More information about the Forum mailing list