‹ BackHN Continuity

Thread

Engineering Memory: On learning to memorize first 100 digits of pi (2024)

66 points · 39 comments · fuzzythinker

  1. oliculipolicula · · focus · HN ↗
    If Socrates were alive today, he'd encourage engineers to internalise the spigot algorithm

    Then, like a MENTAT, they'd be able to tell you the 16afedf97fd4th digit of pi when prod

    In hex, naturally <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bailey%E2%80%93Borwein%E2%80%93Plouffe_formula" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bailey%E2%80%93Borwein%E2%80%9...

    &gt;The BBP formula gives rise to a spigot algorithm for computing the nth base-16 (hexadecimal) digit of π (and therefore also the 4nth binary digit of π) WITHOUT computing the preceding digits.

    1. Ey7NFZ3P0nzAe · · focus · HN ↗
      I have a huge respect for Fabrice Bellard for creating his own optimized version:

      <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bellard&#x27;s_formula" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bellard&#x27;s_formula

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.