3228
7846
52
Show all posts
MatrixMinimalPolynomial[a_List?MatrixQ,x_]:=Module[ { i, n=1, qu={}, mnm={Flatten[IdentityMatrix[Length[a]]]} }, While[Length[qu]==0, AppendTo[mnm,Flatten[MatrixPower[a,n]]]; qu=NullSpace[Transpose[mnm]]; n++ ]; First[qu].Table[x^i,{i,0,n-1}] ]
Bump
$\LaTeX$ formula tutorial Reply post To last page
Mobile version
2025-7-24 08:07 GMT+8
Powered by Discuz!
Processed in 0.013416 seconds, 22 queries