jiggzson / nerdamer

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

Infinity in Calculus #236

Open Happypig375 opened 7 years ago

Happypig375 commented 7 years ago

Especially in sum. Implementing infinite series would enable arbitrary precise decimal outputs for pi, e and the (inverse) trigonometric functions. Helps implementing #221.

jiggzson commented 7 years ago

See #148

Happypig375 commented 6 years ago

While #134 and #148 are closed, this is still not implemented. sum(1/(2^x),x,1,Infinity) won't evaluate.

Happypig375 commented 6 years ago

sum(1/(2^x),x,1,Infinity) should=> 1

Happypig375 commented 6 years ago

Request reopen

jiggzson commented 6 years ago

Aren't we getting a bit into limits here?

Happypig375 commented 6 years ago

True, but when we talk about infinite series/products/integrals, we do not write things like limit(sum(1/(2^n),n,1,x),x,Infinity), but we instead write sum(1/(2^n),n,1,Infinity). The implementation could use some limits though.