You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2019. It is now read-only.
I'm working on a learning game, and I want to use Algebra.js to teach power rules (eg. (x^2)^3 becomes x^6).
The challenge I'm running into is that Algebra.js strips out brackets from the parsed expression, and then applies powers simply as repeated multiplication.
Example: new algebra.Expression().add(algebra.parse("(x^2)"), false).pow(3, false).toString()
Expected: > "(x^2)^3 "
Actual: > "x^2x^2x^2
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm working on a learning game, and I want to use Algebra.js to teach power rules (eg.
(x^2)^3
becomesx^6
).The challenge I'm running into is that Algebra.js strips out brackets from the parsed expression, and then applies powers simply as repeated multiplication.
Example:
new algebra.Expression().add(algebra.parse("(x^2)"), false).pow(3, false).toString()
Expected:
> "(x^2)^3 "
Actual:
> "x^2x^2x^2
The text was updated successfully, but these errors were encountered: