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

Comments

Projects
None yet
3 participants
@hogegex

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

This comment has been minimized.

Collaborator

ericman314 commented Jun 1, 2018

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

@ericman314

This comment has been minimized.

Collaborator

ericman314 commented Jun 2, 2018

Fixed in the develop branch via #1124.

@josdejong

This comment has been minimized.

Owner

josdejong commented Jun 2, 2018

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

@josdejong josdejong closed this Jun 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment