Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -0,0 +1,11 @@
|
|||
func agm a g .
|
||||
repeat
|
||||
a0 = a
|
||||
a = (a0 + g) / 2
|
||||
g = sqrt (a0 * g)
|
||||
until abs (a0 - a) < abs (a) * 1e-15
|
||||
.
|
||||
return a
|
||||
.
|
||||
numfmt 16 0
|
||||
print agm 1 sqrt 0.5
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
sub agm {
|
||||
($^z, {(.re+.im)/2 + (.re*.im).sqrt*1i} ... * ≅ *)
|
||||
.tail.re
|
||||
}
|
||||
|
||||
say agm 1 + 1i/2.sqrt
|
||||
Loading…
Add table
Add a link
Reference in a new issue