Skip to content

poly

polynomial · scripts/polynomial/poly.m

Y = poly (X)  --  characteristic polynomial / polynomial from roots.

For a vector X the result holds the coefficients (highest power first) of
the monic polynomial whose roots are the elements of X.  For a square
matrix X the roots are the eigenvalues of X.  The result is real whenever
the root set is closed under complex conjugation.