Method Gmp.mpz()->bin()
- Method bin
Gmp.mpzbin(intk)- Description
Return the binomial coefficient
noverk, wherenis the value of this mpz object. Negative values ofnare supported using the identity(-n)->bin(k) == (-1)->pow(k) * (n+k-1)->bin(k)(See Knuth volume 1, section 1.2.6 part G.)
- Throws
The
kvalue can't be arbitrarily large. An error is thrown if it's too large.