numtheory(deprecated)
iscyclotomic
test if a polynomial is cyclotomic
Calling Sequence
Parameters
Description
Examples
iscyclotomic(m, x)
iscyclotomic(m, x, 'n')
m
-
polynomial in x over the rationals
x
name
n
(optional) name for the output of the order of the polynomial, if cyclotomic
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[IsCyclotomicPolynomial] instead.
The iscyclotomic(m, x) calling sequence returns true if m(x) is a cyclotomic polynomial, and false otherwise.
The iscyclotomic(m, x, 'n') calling sequence also assigns the order of the cyclotomic polynomial to n when the function returns true.
This function is part of the numtheory package, and so can be used in the form iscyclotomic(..) only after executing the command with(numtheory) or with(numtheory,iscyclotomic). The function can always be accessed in the long form numtheory[iscyclotomic](..).
with⁡numtheory:
m≔cyclotomic⁡10,x
m≔x4−x3+x2−x+1
iscyclotomic⁡m,x,n
true
10
f≔x5+x4+x3+x2+x+1
iscyclotomic⁡f,x
false
See Also
NumberTheory[IsCyclotomicPolynomial]
numtheory
numtheory(deprecated)[cyclotomic]
numtheory(deprecated)[phi]
Download Help Document