[GAP Forum] algebraic integers: testing the minimal polynomial

Mbg Nimda mbg.nimda at gmail.com
Wed Mar 26 16:07:06 GMT 2014


Dear forum members,

I want to know if x is an algebraic integer by  inspecting the coefficients
of its minimal polynomial using tne command
PolynomialCoefficientsOfPolynomial.

gap> p:=a^3-8*a-6;
a^3-8*a-6
gap> cc:=PolynomialCoefficientsOfPolynomial(p,a);
[ -6, -8, 0, 1 ]
gap> ForAll(cc, c->c in Integers);
false

Is there a workaround for this ?

Thanks in advance,

Marc Bogaerts


More information about the Forum mailing list