RosettaCodeData/Task/Arithmetic-geometric-mean/PARI-GP/arithmetic-geometric-mean-2.pari
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

1 line
44 B
Text

agm2(x,y)=if(x==y,x,agm2((x+y)/2,sqrt(x*y))