construct the companion Matrix of a monic polynomial
(optional) parameters; for a complete list, see LinearAlgebra[CompanionMatrix]
The CompanionMatrix(P) command returns the companion Matrix associated with the univariate polynomial P⁡x.
If C := CompanionMatrix(P) and P is a0+a1⁢x+...+xn (a monic univariate polynomial), then C is an n⁢x⁢n Matrix where n is the degree of polynomial P, Ci,n=−coeff⁡P,x,i−1⁡i=1..n, Ci,i−1=1⁡i=2..n, and Ci,j=0 for all other values of i and j.
p ≔ x4+x3+2⁢x2+3⁢x
q ≔ z+2⁢z−5⁢z+3
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.