Rev Language Reference


choose

Rev function to calculate the binomial coefficients.

Usage

choose(Natural n, Natural k)

Arguments

n : Natural (pass by const reference)
Number of total elements.
k : Natural (pass by const reference)
Number of chosen elements.

Return Type

Example

n <- 5
k <- 2
x := choose(n, k)