September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -11,4 +11,4 @@ proc agm(a, g: float,delta: float = 1.0e-15): float =
|
|||
aOld = aNew
|
||||
result = aOld
|
||||
|
||||
echo ($agm(1.0,1.0/sqrt(2)))
|
||||
echo $agm(1.0,1.0/sqrt(2.0))
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ proc agm(x,y: float): tuple[resA,resG: float] =
|
|||
|
||||
(a[23], g[23])
|
||||
|
||||
var t = agm(1, 1/sqrt(2))
|
||||
var t = agm(1, 1/sqrt(2.0))
|
||||
|
||||
echo("Result A: " & formatFloat(t.resA, ffDecimal, 24))
|
||||
echo("Result G: " & formatFloat(t.resG, ffDecimal, 24))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue