` c=poly(a)`

Inputs | |

`a` |
A square matrix or a vector. |

Outputs | |

`c` |
A vector of size `n+1` , where `n` is the size of `a` . |

If

`a`

is a matrix, the roots of the polynomial
`c[1]*x^n+c[2]^x^(n-1)....+c[n+1]`

are the eigenvalues of `a`

. If the input
is a vector, the roots of this polynomial are the elements of `a`

.