Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

math.inv() causes "Can not calculate inverse, determinant is zero" #1122

Closed
hogegex opened this issue Jun 1, 2018 · 3 comments
Closed

math.inv() causes "Can not calculate inverse, determinant is zero" #1122

hogegex opened this issue Jun 1, 2018 · 3 comments
Labels

Comments

@hogegex
Copy link

hogegex commented Jun 1, 2018

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.

@ericman314 ericman314 added the bug label Jun 1, 2018
@ericman314
Copy link
Collaborator

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

@ericman314
Copy link
Collaborator

Fixed in the develop branch via #1124.

@josdejong
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants