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
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.
Asked: 2021-08-14 16:46:03 +0200
Seen: 189 times
Last updated: Aug 14 '21
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
Welcome to Ask Sage! Thank you for your question.
Is your question how to find a matrix that has a specified characteristic polynomial?