jiggzson / nerdamer

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

Incorrect solution of rational equation #555

Closed ElectrifyPro closed 3 years ago

ElectrifyPro commented 4 years ago

nerdamer('solve(1/x, x)').toString() returns [0] when there should be no solutions. nerdamer('solve(1/x=0, x)').toString() throws a parser error, even though these two (I believe) should behave the same

jiggzson commented 4 years ago

@ElectrifyPro, interesting. I agree, they both should return an empty solution set. Thanks for reporting this.