-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Wrong calculation in derivative with unaryMinus #934
Labels
Comments
Thanks for reporting this bug @gpaucot |
It looks like this issue is originating in math.derivative('1 - -2x', 'x', {simplify: false}).toString(); // Correct: 0 - -2 * 1
math.simplify('0 - -2 * 1').toString() // Wrong: -2 Or simpler: math.simplify('--2') // Wrong: -2 (should be 2) |
EEK! I'm on it. Sorry for the delay--was having fun elsewhere. 😢 |
firepick1
added a commit
that referenced
this issue
Aug 28, 2017
Thank you very much both ! ;) |
Thanks @firepick1 for picking this up, I couldn't immediately pinpoint the underlying cause. |
This should be fixed now in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BTW awesome work guys thanks ! 👍
The text was updated successfully, but these errors were encountered: