Function det
Calculate the determinant of a matrix.
Syntax
det(x)
Parameters
Parameter | Type | Description |
---|---|---|
x |
Array | Matrix | A matrix |
Returns
Type | Description |
---|---|
number | The determinant of x |
Examples
det([[1, 2], [3, 4]]); // returns -2
var A = [
[-2, 2, 3],
[-1, 1, 3],
[2, 0, -1]
]
det(A); // returns 6