Post #1540109
2026-04-21 15:30 UTC
@electron_greg @Robsonde actually neither of the algorithms mentioned there are the one you are using.
What you used is the Pi Spigot algorithm mentioned by https://mathstodon.xyz/@EdS/116437041282736376
More information at:
- http://stanleyrabinowitz.com/download/spigot-revised.pdf
- http://www.pi314.net/eng/goutte.php
- https://en.wikipedia.org/wiki/Spigot_algorithm
Replies (1)
-
@wiert@mastodon.social 2026-04-22 14:02
@electron_greg @Robsonde @EdS I also found the PDF of the original BASIC source code, a a Sharp PC-1350 program from 1996 put on the web in 2019 at https://albillo.hpcalc.org/programs/SHARP%20Program%20VA135%20-%20PC-1350%20Producing%20Digits%20of%20Pi%20one%20at%20a%20time.pdf I had to adapt the code for Apple //e Enhanced (similar for Apple ][) as LEFT$ fails when M=0, and line 6 had to be split in order to display the correct result. Blog post scheduled for 20270314 at https://wiert.wordpress.com/?p=196171 , but there is the code and screenshot: