Anonymous user
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
<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.*/
|