google / mathsteps

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

Fails when left node is only a parenthesis (eg "(x+1)=4", "((x)/(4))=4") #249

Open GabrielMahan opened 4 years ago

GabrielMahan commented 4 years ago

I hope this hasn't been raised before, but I found an issue where mathsteps fails to process equations in which the node is only a parenthesis. Will be addressing in a forthcoming PR!

ms.solveEquation("((x)/(4))=3")
Error: Unsupported node type: ParenthesisNode ...

ms.solveEquation("(x+1)=124412")
Math error: No term with symbol: x, returning no steps