Anonymous user
Arithmetic-geometric mean: Difference between revisions
Using Real Math module
(Added solution for Action!) |
(Using Real Math module) |
||
Line 154:
=={{header|Action!}}==
{{libheader|Action! Tool Kit}}
{{libheader|Action! Real Math}}
<lang Action!>INCLUDE "
PROC Agm(REAL POINTER a0,g0,result)
Line 202 ⟶ 169:
RealMult(prevA,g,tmp)
Sqrt(tmp,g)
IF
EXIT
FI
Line 214 ⟶ 181:
Put(125) PutE() ;clear screen
MathInit()
IntToReal(1,r1)
IntToReal(2,r2)
|