alexanderankin / pi-search

Application which lets you search for an occurrence of a number in the digits of π (ratio between edge and width of circle)
0 stars 0 forks source link

research pi constant generation approach #2

Open alexanderankin opened 1 year ago

alexanderankin commented 1 year ago

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.

alexanderankin commented 1 year ago

alternatively, an implementation which needs BigDecimal to scale is here: https://stackoverflow.com/a/46166848

alexanderankin commented 1 year ago

for some reason the first implementation i tried takes a random amount of iterations to get the first 500 digits correct.