# polynomial {#polynomial}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`polynomial(X, coeffs)`

## Arguments {#arguments}

**X** is a scalar/vector.

**coeffs** is a vector indicating the coefficients of a polynomial.

## Details {#details}

Apply the polynomial coefficient vector coeffs on each element of *X*. Return a vector of the same length as *X*.

## Examples {#examples}

The following example calculates ![](../../images/polynomial.png) for each number from 1 to 10.

```
polynomial(1..10, 1 2 3);
// output: [6,17,34,57,86,121,162,209,262,321]
```

