jiggzson / nerdamer

a symbolic math expression evaluator for javascript
http://www.nerdamer.com
MIT License
514 stars 82 forks source link

Error in simplify with exponents in fractions #539

Closed FredericMrozinski closed 4 years ago

FredericMrozinski commented 4 years ago

simplify(((a+b)^2)/c) returns (a+b)*c^(-1), though it should return (a+b)^2*c^(-1). Same thing happens with simplify(c/((a+b)^2)). Basically, the exponents get lost while simplifying.

jiggzson commented 4 years ago

@FredericMrozinski, fixed.