mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
45 lines (27 loc) • 593 B
Markdown
Calculate the determinant of a matrix.
```js
math.det(x)
```
Parameter | Type | Description
--------- | ---- | -----------
`x` | Array &
Type | Description
---- | -----------
Number | The determinant of `x`
```js
math.det([[1, 2], [3, 4]]); // returns -2
var A = [
[-2, 2, 3],
[-1, 1, 3],
[]
]
math.det(A); // returns 6
```
[](inv.md)
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->