1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 21:58:26 +01:00
dotSCAD/docs/lib3x-m_determinant.md
2022-06-06 13:11:46 +08:00

37 lines
626 B
Markdown

# m_determinant
It can calculate a determinant, a special number that can be calculated from a square matrix.
**Since:** 2.4
## Parameters
- `m` : A square matrix.
## Examples
use <matrix/m_determinant.scad>
assert(
m_determinant([
[3, 8],
[4, 6]
]) == -14
);
assert(
m_determinant([
[6, 1, 1],
[4, -2, 5],
[2, 8, 7]
]) == -306
);
assert(
m_determinant([
[0, 4, 0, -3],
[1, 1, 5, 2],
[1, -2, 0, 6],
[3, 0, 0, 1]
]) == -250
);