jiggzson / nerdamer

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

Limit to infinity fails #572

Closed MatheNerd92 closed 3 years ago

MatheNerd92 commented 4 years ago

HI, first of all thanks for your library. It is great! I think I found a mistake. Nerdamer('limit(e^(-x),x,Infinity)'); //0

But this one gives Nerdamer('limit(e^(-x)+2,x,Infinity)'); //Infinity

Meowcolm024 commented 3 years ago

I found the same problem.

Also happens for limit((2*x+log(x))/(x*log(x)),x,Infinity) which should get 0, but Infinity instead

jiggzson commented 3 years ago

@Meowcolm024, the library currently doesn't know how to get this limit and should have returned it as a limit. I'll leave this open and work on a solution to these types.

jiggzson commented 3 years ago

@MatheNerd92, @Meowcolm024 both limits should now be fixed on the dev branch.