Forgot password
 Register account
View 125|Reply 0

Find the minimal polynomial for the square matrix a in the variable x

[Copy link]

3228

Threads

7846

Posts

52

Reputation

Show all posts

hbghlyj posted 2022-7-8 22:44 |Read mode
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}]
  ]
Mathworld

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-24 08:07 GMT+8

Powered by Discuz!

Processed in 0.013416 seconds, 22 queries