Skip to content

Parentheses don't work as expected #3

Description

@owenversteeg

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions