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

Incorrect result of root function evaluation #7

Closed
faiwer opened this issue Oct 30, 2017 · 1 comment
Closed

Incorrect result of root function evaluation #7

faiwer opened this issue Oct 30, 2017 · 1 comment

Comments

@faiwer
Copy link

faiwer commented Oct 30, 2017

Hello. Please look at next code:

mea.eval('root(4-(2-1)^2)'); // 3
mea.eval('root(4-1^2)'); // 1.732050807568877
mea.eval('(4-(2-1)^2)^.5'); // 1.732050807568877
@bugwheels94
Copy link
Owner

Took me years but I did it! Solved in latest commit and published

mea.eval('root(4-(2-1)^2)'); // returns 1.73
mea.eval('root(4-1^2)'); // 1.732050807568877
mea.eval('(4-(2-1)^2)^.5'); // 1.732050807568877

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

No branches or pull requests

2 participants