Open alexanderankin opened 2 years ago
alternatively, an implementation which needs BigDecimal to scale is here: https://stackoverflow.com/a/46166848
for some reason the first implementation i tried takes a random amount of iterations to get the first 500 digits correct.
Recent Records for calculating the most digits of pi on Wikipedia references the Chudnovsky Algorithm aka y-cruncher.
There is an example of an implementation here - https://github.com/Mysticial/y-cruncher - http://www.numberworld.org/y-cruncher/ - tucked away in the DigitViewer portion of the project.