up previous next
LinAlg.Det

Computes the determinant of a matrix.
Syntax
          
LinAlg.Det(M:MAT):RAT, INT or ZMOD

          

Description
Please note: The function(s) explained on this page is/are using the ApCoCoAServer. You will have to start the ApCoCoAServer in order to use it/them.

This function returns the determinant of the square matrix M computed by the ApCoCoAServer using LinBox functions. Please note that in contrary to the built in CoCoA Det function the entries of M are only allowed to be of type RAT, INT or ZMOD. The resulting type depends on the types of the entries of the matrix.

Example
Use R ::= QQ[x];
LinAlg.Det(Mat([[1,2],[0,5]]));

-------------------------------
5
-------------------------------


Example
Use ZZ[x];
LinAlg.Det(Mat([[1,2],[1,4]]));

-------------------------------
2
-------------------------------


See Also