TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pi with arbitrary precision using Bernoulli numbers (the slow way)

1 pointsby juliusgeoover 2 years ago

1 comment

juliusgeoover 2 years ago
In the recent discussion here on Plouffe&#x27;s new formula for calculating the decimal digits of pi [0] it was noted that fast calculation of Bernoulli numbers often requires knowing pi with decent precision. In Plouffe&#x27;s paper he notes that it can be calculated using a multi-modular algorithm, but that would be too complex for a toy project like this so I stuck with a double sum.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34389145" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34389145</a>