ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 15 Aug 2021 05:05:43 +0200How to create matrix from x^3-8*x^2-44*x-49 (polynomal data)https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/ A=matrix([[2,4,5],[7,5,9],[3,2,1]])
A
Sat, 14 Aug 2021 16:46:03 +0200https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/Comment by slelievre for <p>A=matrix([[2,4,5],[7,5,9],[3,2,1]])
A</p>
https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/?comment=58466#post-id-58466Is your question how to find a matrix that has a specified characteristic polynomial?Sun, 15 Aug 2021 00:12:38 +0200https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/?comment=58466#post-id-58466Comment by slelievre for <p>A=matrix([[2,4,5],[7,5,9],[3,2,1]])
A</p>
https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/?comment=58465#post-id-58465Welcome to Ask Sage! Thank you for your question.Sun, 15 Aug 2021 00:12:10 +0200https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/?comment=58465#post-id-58465Answer by John Palmieri for <p>A=matrix([[2,4,5],[7,5,9],[3,2,1]])
A</p>
https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/?answer=58471#post-id-58471If `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.Sun, 15 Aug 2021 05:05:43 +0200https://ask.sagemath.org/question/58460/how-to-create-matrix-from-x3-8x2-44x-49-polynomal-data/?answer=58471#post-id-58471