How about ANY FINITE SEQUENCE AT ALL?

    • db0@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      edit-2
      14 days ago

      Thats very cool. It brings to mind some sort of espionage where spies are exchanging massive messages contained in 2 numbers. The index and the Metadata length. All the other spy has to do is pass it though pifs to decode. Maybe adding some salt as well to prevent someone figuring it out.

    • Arfman@aussie.zone
      link
      fedilink
      arrow-up
      2
      ·
      14 days ago

      I’m a layman here and not a mathematician but how does it store the complete value of pi and not rounded up to a certain amount? Or do one of the libraries generate that?

      • lukewarm_ozone@lemmy.today
        link
        fedilink
        English
        arrow-up
        8
        ·
        13 days ago

        You generate it when needed, using one of the known sequences that converges to π. As a simple example, the pi() recipe here shows how to compute π to arbitrary precision. For an application like pifs you can do even better and use the BBP formula which lets you directly calculate a specific hexadecimal digit of π.

    • somenonewho@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      13 days ago

      Thanks. I love these kind of fun OpenSource community projects/ideas/jokes whatever. The readme reminds me of ed