-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Some expected simplifications are not applied
Steps to Reproduce
- a^n·a^m = a^{n+m)
ce.parse("e^xe^x").simplify()
produces: ["Power","ExponentialE",["Multiply",2,"x"]] .. which is correct
ce.parse("e^{2x}e^x").simplify()
produces: ["Multiply",["Power","ExponentialE","x"],["Power","ExponentialE",["Multiply",2,"x"]]] .. which is unexpected
expected: ["Power","ExponentialE",["Multiply",3,"x"]]
- \frac{a^n}{a^m} = a^{n-m)
ce.parse("\\frac{e^x}{e^x}").simplify()
produces: ["Divide",["Power","ExponentialE","x"],["Power","ExponentialE","x"]] .. no simplification takes place
expected: "1"
Version: "@cortex-js/compute-engine": "^0.25.0"
Operating System Linux 6.8.0-35
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working