[back] [prev] [next] [index] [root]

 


MatMinPoly

Returns the minimal polynomial of a matrix.

Syntax:

f := MatMinPoly(M);

matrix
  M  
Polynomial
  f  

See also:  EltMinPoly, MatCharPoly

Description:

no detailed description available yet


Example:

Compute the minimal polynomial of \left(\begin{array}{cccc} 0 & 1 & 0 & -1 1 & 0 & 1 & 0 0 & 1 & 0 & 1 -1 & 0 & 1 & 0 \end{array}right) \in {Z}^{4 \times 4}.

kash> M := Mat(Z,[[0,1,0,-1],[1,0,1,0],[0,1,0,1],[-1,0,1,0]]);
[ 0  1  0 -1]
[ 1  0  1  0]
[ 0  1  0  1]
[-1  0  1  0]
kash> MatMinPoly(M);
x^2 - 2
kash> M^2;
> [2 0 0 0]
[0 2 0 0]
[0 0 2 0]
[0 0 0 2]


<- back[back] [prev] [next] [index] [root]