Jump to content

Arithmetic-geometric mean: Difference between revisions

m
→‎{{header|REXX}}: removed duplicate "the the". -- ~~~~
(→‎{{header|Racket}}: Added bigfloat version.)
m (→‎{{header|REXX}}: removed duplicate "the the". -- ~~~~)
Line 831:
 
=={{header|REXX}}==
The REXX language doesn't have a   '''SQRT'''   function, so one was included here (RYO).
<br>Also, this version of AGM has three ''short circuits'' within it for an equality case and andfor two zero cases.
<br>REXX supports arbitrary precision, so the digits can be increased if desired.
<lang rexx>/*REXX program calculates AGM (arithmetric-geometric mean) of 2 numbers.*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.