# cyclotomic function

Cyclotomic polynomial of a given order.

## How to write it

### cyclotomic(n, x)

**n**

The order. Takes a whole number.

**x**

The variable of the polynomial. Takes a variable.

## Examples

- $\displaystyle \operatorname{cyclotomic}(6, x) = x^{2}-x+1$

  `cyclotomic(6, x)`

  In the solver, `cyclotomic(6, x)` gives `x^2 - x + 1`.

  [Open in the solver](https://hilberon.com/?q=cyclotomic%286%2C%20x%29)

## Related functions

- [degree](https://hilberon.com/library/degree)

  Degree of a polynomial in a variable.
- [complex_expand](https://hilberon.com/library/complex_expand)

  Expand an expression assuming its variables are real.
- [denominator](https://hilberon.com/library/denominator)

  Denominator of a fraction.
- [collect](https://hilberon.com/library/collect)

  Group the terms of an expression by powers of a variable.
- [discriminant](https://hilberon.com/library/discriminant)

  Discriminant of a polynomial in a variable.
- [coefficients](https://hilberon.com/library/coefficients)

  List the coefficients of a polynomial, constant term first.

---
Source: https://hilberon.com/library/cyclotomic
