As the title says. The demo version works with version 1.7.0, so somewhere between 2.4.0 and 1.7.0 math.diff.js broke. I'd assume somewhere around the 2.0 release.
Simple things work, for example: math.diff(math.parse('e^x'), 'x').toString()
Slightly more complex things, however, break: math.diff(math.parse('e^(2*x)'), 'x').toString() returns "0".
[edit] After realizing that this is only because of parentheses and the addition of ParenthesisNode I renamed the title.
As the title says. The demo version works with version 1.7.0, so somewhere between 2.4.0 and 1.7.0 math.diff.js broke. I'd assume somewhere around the 2.0 release.
Simple things work, for example:
math.diff(math.parse('e^x'), 'x').toString()Slightly more complex things, however, break:
math.diff(math.parse('e^(2*x)'), 'x').toString()returns "0".[edit] After realizing that this is only because of parentheses and the addition of ParenthesisNode I renamed the title.