google / mathsteps

Step by step math solutions for everyone
https://socratic.org
Apache License 2.0
2.12k stars 274 forks source link

remove unnecessary parens before solving equations #205

Closed ldworkin closed 7 years ago

ldworkin commented 7 years ago

Previously unnecessary parens were removed when we simplified left/right sides of an equation. But now that we have this alternate "find roots" flow, that doesn't always happen. e.g. x^(2) = 0 solves x = 0 only, so x is simplified and 0 is simplified, but never x^2. So instead let's simplify an equation right away to be safe.