mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 11:44:50 +02:00
add doc
This commit is contained in:
37
docs/lib2x-m_determinant.md
Normal file
37
docs/lib2x-m_determinant.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# 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
|
||||
);
|
Reference in New Issue
Block a user