Help for this page

Select Code to Download


  1. or download this
    use Math::BigInt;
    my $n = 2;
    ...
    printf("$n choose $k = %d\n", $z->as_int());
    printf("$n choose $k = %s\n", $z->bstr());
    printf("$n choose $k = %d\n", $z->numify());
    
  2. or download this
    my $n = 5;
    my $k = 2;
    my $x = Math::BigInt->new($n);
    my $z = $x->bnok($k);
    printf("$n choose $k = %d\n", $z);
    
  3. or download this
    ***
    
  4. or download this
    ***