Contents Previous Next Subchapters

The Determinant Function
Syntax det(A)
See Also cond , rank , trace

Description
Returns the determinant of the matrix A, where A is an integer, real, double-precision, or complex square matrix . The return value has the same type as A.

If A is an integer matrix, the result is rounded to the nearest integer.

Example
     x = {[1, 0], [0, 2]}
     det(x)
returns
     2

Algorithm
This function uses the logdet function which in turn uses an LU factorization to calculate the determinant.