If I wanted to generate a billion digits of sqrt of 2, what is the quickest way of doing that? (I am talking about the mathematical methods and the programming issue, not hardware memory limit problem)
Today I coded a program in php, using bisection method from numerical analysis. But a float in php can only display max 13 digits.
Questions:
What is the most effective mathematical method for doing that? One from numerical analysis or adding values of a series?
What is the best programming tool for that in php say, considering the limit of 13 of digits of a float variable?
Thank you.
decimalmodule for arbitrary precision fixed-point decimal arithmetic. However, doing calculations with a billion decimal digits tends to be slow &/or difficult unless you have a lot of RAM. – PM 2Ring Sep 05 '21 at 12:04