Why Nostr? What is Njump?
2024-07-16 04:41:21

rob pike on Nostr: Wow, Chudnovsky's algorithm converges fast! I put it into ivy (code in the alt text) ...

Wow, Chudnovsky's algorithm converges fast! I put it into ivy (code in the alt text) and the first term alone is good to 10 digits. Each term adds 30+ bits to the precision. Here the argument to chudpi is how many terms to sum.

)get 'chudpi.ivy'

chudpi 0
3.1415926535897342076684535915782983407622

log pi - chudpi 0
-30.4607171517456828366955039144850114298603

log pi - chudpi 10
-357.9935248416118262945083838384929862494035

Author Public Key
npub16s49cyez927vm69a3vrfckav2pmulculhrzz95cgl82p8r4hd8eq2mpvtz