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

error in new simplify using scope and rules #924

Closed
paulobuchsbaum opened this Issue Aug 18, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@paulobuchsbaum
Contributor

paulobuchsbaum commented Aug 18, 2017

The following code

m.require("mathjs");
var node = m.simplify("y+x",[{l:'n1-n2',r:'-n2+n1'}],{x:5})

Generates the error message:

Too many arguments in function simplify (expected: 2, actual: 3)

The syntax presents as one of the options:

simplify(expr, rules, scope)

@firepick1

This comment has been minimized.

Collaborator

firepick1 commented Aug 19, 2017

Thanks for reporting Paolo. I shall investigate. --Karl

@firepick1

This comment has been minimized.

Collaborator

firepick1 commented Aug 19, 2017

@jos, I've committed a fix to simplify2: 52e29d6
I think this is benign and feels like a simple omission. Recommend merge into develop.

@josdejong

This comment has been minimized.

Owner

josdejong commented Aug 19, 2017

Thanks @firepick1 I've merged it in develop, will do a bug fix release today or tomorrow.

@josdejong josdejong closed this Feb 25, 2018

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