binom: Binomial Coefficients for vli Objects

View source: R/binom.R

06. Binomial coefficientsR Documentation

Binomial Coefficients for vli Objects

Description

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.

Usage

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)

Arguments

n

object of class vli or 32 bits integer

k

object of class vli or 32 bits integer

Value

object of class vli

Author(s)

Javier Leiva Cuadrado

Examples

x <- as.vli("100")
binom(x, 20)

VeryLargeIntegers documentation built on May 31, 2023, 7:06 p.m.