numtheory[iscyclotomic] - test if a polynomial is cyclotomic
|
Calling Sequence
|
|
iscyclotomic(m, x)
iscyclotomic(m, x, 'n')
|
|
Parameters
|
|
m
|
-
|
polynomial in x over the rationals
|
x
|
-
|
name
|
n
|
-
|
(optional) name for the output of the order of the polynomial, if cyclotomic
|
|
|
|
|
Description
|
|
•
|
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](..).
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?