OFFSET
1,1
LINKS
Gerd Lamprecht, Iterationsrechner mit Algorithmus.
Gerd Lamprecht, Zahlenfolgen (sequences).
Eric Weisstein's World of Mathematics, Arithmetic-Geometric Mean.
EXAMPLE
AGM(3,3.28645055277941042287...) = Pi = A000796.
MATHEMATICA
RealDigits[x /. FindRoot[ArithmeticGeometricMean[3, x] == Pi, {x, 4}, WorkingPrecision -> 120]][[1]] (* Amiram Eldar, May 25 2023 *)
PROG
(Other) Gerd Lamprecht online Iterationsrechner: ##@N@C0]='50'; @C1]=MitGenau('3.286450552779410422878257193772929', @C0]); @B0]='1.0'; aD[0]='0.'+addstr('0', @U@C0])-2)+'1'; IM=2; @N@Bi]=bigc(1, GetKoDezi(796, 0, @U@C0])), bigc(19, '3.0', @C1])); @Bi]=bigc(2, @Bi], '2.045601998'); @C1]=bigc(0, @C1], @Bi]); @Nbigc(5, bigc(6, @Bi], @C0]), aD[0])%3C0@N0@N1@Nif(i%3C2)i=2;
(PARI) solve(x=3, 4, agm(3, x)-Pi) \\ Charles R Greathouse IV, Mar 03 2016
CROSSREFS
KEYWORD
cons,nonn
AUTHOR
Gerd Lamprecht (gerdlamprecht(AT)googlemail.com), Jan 25 2010
STATUS
approved