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

 


MatCharPoly

Returns the characteristic polynomial of a matrix.

Syntax:

f := MatCharPoly(M);

matrix
  M  
Polynomial
  f  

See also:  MatMinPoly

Description:

no detailed description available yet


Example:

Compute the characteristic 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> MatCharPoly(M);
> x^4 - 4*x^2 + 4


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