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

 


MatInv

Returns the inverse matrix (if possible).

Syntax:

A := MatInv(M);

matrix
  A  
matrix
  M  

Description:

Returns the inverse matrix A of M. Returns an error if M is not invertible.


Example:

Compute the inverse of the integer matrix \left(\begin{array}{cc} 1 & 2 1 & 1 \end{array}right).

kash> M := Mat(Z,[[1,2],[1,1]]);
[1 2]
[1 1]
kash> MatInv(M);
> [-1  2]
[ 1 -1]


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