jiggzson / nerdamer

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

ParseError when solving systems with absolute values #645

Open jarble opened 2 years ago

jarble commented 2 years ago

On the demo page, I tried to solve this system of equations: solveEquations([abs(x)=8,x^2=64]) But Nerdamer shows an error message: Something went wrong. Nerdamer could not parse expression! ParseError: Cannot read properties of undefined (reading '1'): 1 Why is Nerdamer not able to solve this system?

jiggzson commented 2 years ago

The cause of the error has been fixed on the dev branch but it appears that there's still another issue that needs to be addressed since it gives 0 as the solution.