### 5.34.15 Determinant of a matrix in ℤ/pℤ : det

det takes as argument a matrix A with coefficients in Z/pZ.
det returns the determinant of this matrix A.
Computations are done in ℤ/pℤ by Gauss reduction.
Input :

det([[1,2,9]%13,[3,10,0]%13,[3,11,1]%13])

or :

det([[1,2,9],[3,10,0],[3,11,1]]%13)

Output :

5%13

hence, in ℤ/13ℤ, the determinant of A=[[1,2,9],[3,10,0],[3,11,1]] is 5%13 (in ℤ, det(A)=31).