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.lusolve's docs are incorrect #975

Closed
jussch opened this Issue Nov 22, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@jussch

jussch commented Nov 22, 2017

http://mathjs.org/docs/reference/functions/lusolve.html has the example:

var a = [[-2, 3], [2, 1]];
var b = [11, 9];
var x = lusolve(a, b);  // [[-5.5], [20]]

but when I opened the console on the same page and typed:

var a = [[-2, 3], [2, 1]];
var b = [11, 9];
var x = math.lusolve(a, b);  // [[-5.5], [20]]

it found that x === [[2],[5]].

@josdejong

This comment has been minimized.

Owner

josdejong commented Nov 23, 2017

Thanks for reporting Justin! I've fixed it in the develop branch.

@josdejong josdejong closed this in d7c4d28 Dec 16, 2017

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