How to create matrix from x^3-8*x^2-44*x-49 (polynomal data)
A=matrix([[2,4,5],[7,5,9],[3,2,1]]) A
A=matrix([[2,4,5],[7,5,9],[3,2,1]]) A
If p
is a polynomial, then matrix.companion(p)
returns a matrix which has p
as its characteristic polynomial. Since such matrices are not unique, you shouldn't expect it to give the precise matrix that you've specified.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2021-08-14 16:46:03 +0100
Seen: 139 times
Last updated: Aug 14 '21
Welcome to Ask Sage! Thank you for your question.
Is your question how to find a matrix that has a specified characteristic polynomial?