AngouriMath
Det(AngouriMath.Entity.Matrix)
Method (no overloads)
Summary
Finds the determinant of the given matrix. If
the matrix is non-square, returns null
the matrix is non-square, returns null
Example
using System;
using static AngouriMath.Entity;
using static AngouriMath.MathS;
Matrix A = @"
[[1, 2],
[3, 4]]
";
Console.WriteLine(Det(A));
Matrix B = @"
[[1, 2],
[3, 6]]
";
Console.WriteLine(Det(B));
Matrix C = @"
[[1, 2],
[3, 6],
[7, 8]]
";
Console.WriteLine(Det(C) is null);
Prints
-2
0
True
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online