1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-m_determinant.md
2021-02-24 21:09:54 +08:00

37 lines
627 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
);