## `polylib::cyclotomic` -- cyclotomic polynomials

#### Introduction

`polylib::cyclotomic``(n, x)` computes the n-th cyclotomic polynomial, expressed in the indeterminate x.

#### Call(s)

`polylib::cyclotomic(n, x)`

#### Parameters

`n` | - | positive integer
`x` | - | identifier

#### Returns

a polynomial over `Expr` in the indeterminate `x`.

#### Related Functions

`numlib::phi`

#### Details

- The n-th cyclotomic polynomial is defined to be the minimal polynomial of any n-th primitive root of unity over the field of rational numbers.

#### Example 1

We compute the 20th cyclotomic polynomial.

    >> polylib::cyclotomic(20, z);

                               8    6    4    2
                         poly(z  - z  + z  - z  + 1, [z])

#### Changes

- new function

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000