RosettaCodeData/Task/Arithmetic-geometric-mean/Maple/arithmetic-geometric-mean-1.maple
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

6 lines
289 B
Text

> evalf( GaussAGM( 1, 1 / sqrt( 2 ) ) ); # default precision is 10 digits
0.8472130847
> evalf[100]( GaussAGM( 1, 1 / sqrt( 2 ) ) ); # to 100 digits
0.847213084793979086606499123482191636481445910326942185060579372659\
7340048341347597232002939946112300