Skip to content

Commit

Permalink
Include test for determinant of matrix with tiny numbers josdejong#3135
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x committed Feb 9, 2024
1 parent e827580 commit 0fa448e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit-tests/function/matrix/det.test.js
Expand Up @@ -38,6 +38,12 @@ describe('det', function () {
[2, 7, 4, 3, 7]
]), 1176)
assert.strictEqual(det(diag([4, -5, 6])), -120)
assert.strictEqual(
det([
[6.123234262925839e-17, -1, 1],
[-0.8660253882408142, 0.5, 1],
[-0.6495190262794495, -0.3749999701976776, 1]
]), 0.4330126459590976)
})

it('should return the determinant of a sparse matrix', function () {
Expand Down

0 comments on commit 0fa448e

Please sign in to comment.