Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
Procedure.d AGM(a.d, g.d, ErrLim.d=1e-15)
|
||||
Protected.d ta=a+1, tg
|
||||
While ta <> a
|
||||
ta=a: tg=g
|
||||
a=(ta+tg)*0.5
|
||||
g=Sqr(ta*tg)
|
||||
Wend
|
||||
ProcedureReturn a
|
||||
EndProcedure
|
||||
|
||||
If OpenConsole()
|
||||
PrintN(StrD(AGM(1, 1/Sqr(2)), 16))
|
||||
Input()
|
||||
CloseConsole()
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue