Contents
Previous
Next
Subchapters
Current Chapters->
kron
inv
trace
det
logdet
rank
cond
null
orth
pinv
cholesky
lu
svd
qr
qred
eigen
geneig
eigsym
symeig
schur
levinson
tridiag
BlockTriDiag
Parent Chapters->
Omatrix6
linear
det
Search Tools->
contents
reference
index
search
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.