Data update

This commit is contained in:
Ingy döt Net 2023-10-02 18:11:16 -07:00
parent 796d366b97
commit 35bcdeebf8
504 changed files with 7045 additions and 610 deletions

View file

@ -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

View file

@ -0,0 +1,6 @@
sub agm {
($^z, {(.re+.im)/2 + (.re*.im).sqrt*1i} ... * *)
.tail.re
}
say agm 1 + 1i/2.sqrt