# poly

Polynomial construction, either as a characteristic polynomial, or from its roots.2024

## Syntax

R = poly(A)

R = poly(V)

## Inputs

`A`- A square matrix.
`V`- A vector.

## Outputs

- R
- Vector.

## Examples

Vector input:

`R = poly([1,2,3;2,3,4;3,4,6])`

```
R = [Matrix] 1 x 4
1.00000 -10.00000 -2.00000 1.00000
```

Matrix
input:

`R = poly([1,3,5])`

```
R = [Matrix] 1 x 4
1 -9 23 -15
```

## Comments

For a square n x n matrix `A`, R contains the
characteristic polynomial of `A`.

For a vector `V`, R contains the polynomial whose roots are
the elements of `x`.