Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,8 @@
sub binomial {
use bigint;
my ($r, $n, $k) = (1, @_);
for (1 .. $k) { $r *= $n--; $r /= $_ }
$r;
}
print binomial(5, 3);

View file

@ -0,0 +1,5 @@
sub binomial {
use bigint;
my($n,$k) = @_;
(0+$n)->bnok($k);
}

View file

@ -0,0 +1,2 @@
use ntheory qw/binomial/;
print length(binomial(100000,50000)), "\n";