Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the Frobenius companion matrix of a polynomial
ResourceFunction["CompanionMatrix"][poly,x] gives the Frobenius companion matrix of the polynomial poly with respect to x. |
Compute the companion matrix of a polynomial:
In[1]:= |
Out[1]= |
The characteristic polynomial is the same as the original polynomial:
In[2]:= |
Out[2]= |
Define a polynomial:
In[3]:= |
Out[3]= |
CompanionMatrix is a special case of the resource function GeneralizedFiedlerMatrix:
In[4]:= |
Out[4]= |
In[5]:= |
Out[5]= |
Wolfram Language 12.3 (May 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License