Skip to content

Parentheses don't work as expected #3

@owenversteeg

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.

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