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

4 lines
197 B
Text

agm(a, b) := %pi/4*(a + b)/elliptic_kc(((a - b)/(a + b))^2)$
agm(1, 1/sqrt(2)), bfloat, fpprec: 85;
/* 8.472130847939790866064991234821916364814459103269421850605793726597340048341347597232b-1 */