Write some code that uses this formula to compute $\pi$: $\pi=\sum\limits_{n=1}^\infty\frac{1}{n^3}\left(\frac{-238}{n+1}+\frac{285/2}{2n+1}-\frac{667/32}{4n+1}-\frac{5103/16}{4n+3}+\frac{35625/32}{4n+5}\right)$ ← Back to challenges | Lessons

$\pi=\sum\limits_{n=1}^\infty\frac{1}{n^3}\left(\frac{-238}{n+1}+\frac{285/2}{2n+1}-\frac{667/32}{4n+1}-\frac{5103/16}{4n+3}+\frac{35625/32}{4n+5}\right)$

Run Share Lua reference

Here is a share link to your code:

Close