up previous next
IsCyclotomic    --    checks the given polynomial for cyclotomicity


Syntax
IsCyclotomic(F: RINGELEM): INT

Description
This function takes the given polynomial F and returns n if it is the n-th cyclotomic polynomial. Otherwise, it returns 0.

Example
/**/  use R ::= QQ[x];
/**/  IsCyclotomic(x^6 +x^3 +1);
9
/**/  IsCyclotomic(x^4 -x^2 +2);
0

See Also