06. Binomial coefficients {VeryLargeIntegers} | R Documentation |
binom
computes binomial coefficients of vli (Very Large Integer) objects. That is, given two positive integers n
and k
with n >= k
, the function binom(n, k)
returns the number of ways to choose a subset of k
elements, disregarding their order, from a set of n
elements.
binom(n, k) ## Default S3 method: binom(n, k) ## S3 method for class 'numeric' binom(n, k) ## S3 method for class 'vli' binom(n, k)
n |
object of class vli or 32 bits integer |
k |
object of class vli or 32 bits integer |
object of class vli
Javier Leiva Cuadrado
x <- as.vli("100") binom(x, 20)