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.

Computation of the n'th digit of pi in any base in O(n^2) (1997)

63 pointsby akkartikover 1 year ago

6 comments

someplaceguyover 1 year ago
That&#x27;s impressive, but not as impressive as this: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;InternetH0F&#x2F;status&#x2F;1721641836404408536" rel="nofollow noreferrer">https:&#x2F;&#x2F;twitter.com&#x2F;InternetH0F&#x2F;status&#x2F;1721641836404408536</a>
评论 #38228691 未加载
评论 #38228654 未加载
davesqueover 1 year ago
Squinting at this, I wonder if it&#x27;s at all valid to say that the existence of a quadratic time algorithm to calculate pi has anything to do with the fact that the implicit formula of a circle is made up of quadratic terms.<p>In other words, if pi basically sums up the most important fact about a circle&#x27;s geometry, then it&#x27;s reasonable to expect that geometry to be represented somehow in the important facts about algorithms that calculate pi.
评论 #38227239 未加载
评论 #38228179 未加载
nurettinover 1 year ago
I think an earlier version of this algorithm was implemented as a showcase in one of the corman lisp for windows 16bit examples folder. I was astonished watching it print thousands of digits of pi in under a minutes.<p>edit: it was just atan <a href="https:&#x2F;&#x2F;github.com&#x2F;sharplispers&#x2F;cormanlisp&#x2F;blob&#x2F;master&#x2F;examples&#x2F;pi.lisp">https:&#x2F;&#x2F;github.com&#x2F;sharplispers&#x2F;cormanlisp&#x2F;blob&#x2F;master&#x2F;examp...</a>
sp332over 1 year ago
I thought we only had algorithms to do this in hexadecimal or other power-of-2 bases. Looks like arbitrary bases including base 10 have been doable since 1996!
评论 #38227209 未加载
Funnyduck99over 1 year ago
Is this good? I would think finding nth digit of pi would be O(n)
评论 #38229755 未加载
评论 #38227009 未加载
starcraft2wolover 1 year ago
Math illiteracy is high in this thread.