Ask Your Question

How to create matrix from x^3-8*x^2-44*x-49 (polynomal data)

asked 2021-08-14 16:46:03 +0200

Feofan-kornica gravatar image

A=matrix([[2,4,5],[7,5,9],[3,2,1]]) A

edit retag flag offensive close merge delete


Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2021-08-15 00:12:10 +0200 )edit

Is your question how to find a matrix that has a specified characteristic polynomial?

slelievre gravatar imageslelievre ( 2021-08-15 00:12:38 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-15 05:05:43 +0200

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-08-14 16:46:03 +0200

Seen: 119 times

Last updated: Aug 14 '21