jiggzson / nerdamer

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

Solve incorrect on simple linear equations #516

Closed GalHorowitz closed 4 years ago

GalHorowitz commented 4 years ago

The following code: nerdamer.solveEquations(['a*(1-0)+0=b*(9-10)+10','a*(1-0)+0=b*(1-0)+0']);

returns a=5.5, b=4.5, even though it clearly does not satisfy the second equation.

jiggzson commented 4 years ago

@GalHorowitz, fixed on dev