poly
Characteristic polynomial of a matrix, or the polynomial whose roots are the elements of the given vector.
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 .


Description
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 .