Mathjs: math.inv() causes "Can not calculate inverse, determinant is zero"

Created on 1 Jun 2018  路  3Comments  路  Source: josdejong/mathjs

The following simple code works fine with mathjs v4.4.0, but it throws an exception in v4.4.1.

let mat = math.matrix ([
聽聽 [1, 0, 0],
聽聽 [0, -1, 1],
聽聽 [0, 0, 1]
]);

console.log (math.inv (mat)); // Error: Can not calculate inverse, determinant is zero

This is probably a bug caused by #1114.

bug

Most helpful comment

Sorry about that, I'll try to get it fixed tonight.

All 3 comments

Sorry about that, I'll try to get it fixed tonight.

Fixed in the develop branch via #1124.

Thanks a lot for the quick fix Eric! The fix is applied now in v4.4.2

Was this page helpful?
0 / 5 - 0 ratings