in reply to Arithmetic-Geometric Mean calculation of pi.
3.1415926535 8979323846 2643383279 5028841974 186
These are the actual digits of π:
3.1415926535 8979323846 2643383279 5028841971 693
Note that your program starts to calculate the digits incorrectly at the point where the digits are highlighted in bold.
I double checked the digits of π by referring to my book The Mathematical Experience (pg 371) by P. Davis and R. Hersh and by using the online site www.joyofpi.com/pi.htm
So either there is something wrong with your code/algorithm or Math::BigFloat does not accurately perform the desired operations.
metadoktor
"The doktor is in."
|
|---|