CompM(P) = Companion matrix of polynomial P:
First P is converted to a monic polynomial by dividing by the first non-zero leading coefficient. Then the companion matrix to a monic polynomial
is the n by n square matrix
with ones on the subdiagonal and the last column given by the coefficients of P(x), {−p(0); −p(1); −p(2); ...; −p(n−1)}. The characteristic polynomial of the companion matrix is the same monic polynomial.
Return to Matrix and Polynomial Computations
Return to Harry's Home Page