jiggzson / nerdamer

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

Using solveEquations or solve with i alone on either side of = gives an error. #627

Closed TimonDalton closed 2 years ago

TimonDalton commented 3 years ago

This: var sol = nerdamer.solveEquations(['x=i','x+y=3']); returns Error [NerdamerValueError]: i does not equal x while var sol = nerdamer.solveEquations(['x - i=0','x+y=3']); is fine. This happens in any example where i is alone on one side of the equal sign.

jiggzson commented 3 years ago

@TimonDalton, thanks for reporting. I suspect I have to review the logic in this line.