[back] [prev] [next] [index] [root]
MatDet
Computes the determinant of a square matrix.
Syntax:
d := MatDet(M);d := MatDet(M, bound);
element of the ring the matrix entries come from |
d |
|
matrix |
M |
|
Description:
If bound is given and M is over an absolute numberfield
we use an modular algorithm. If bound<=0 we will compute
a suitable bound.
Example:
Compute the determinant of the integer matrix
\left(\begin{array}{cc} -1 & 5 6 & -1 \end{array}right).
kash> M := Mat(Z,[[-1,5],[6,-1]]);
[-1 5]
[ 6 -1]
kash> MatDet(M);
> -29
<- back[back] [prev] [next] [index] [root]