commit deletes
This commit is contained in:
parent
776bba907c
commit
372c577f83
233 changed files with 0 additions and 6724 deletions
|
|
@ -1,11 +0,0 @@
|
|||
sub agm ($a, $g) {
|
||||
sub iter ($old) {
|
||||
my $new := [ 0.5 * [+](@$old), sqrt [*](@$old) ];
|
||||
last if $new ~~ $old;
|
||||
$new;
|
||||
}
|
||||
|
||||
([$a,$g], &iter ... 0)[*-1][0];
|
||||
}
|
||||
|
||||
say agm 1, 1/sqrt 2;
|
||||
Loading…
Add table
Add a link
Reference in a new issue