inverse.choose: inverse.choose

Description Usage Arguments Details Value Examples

View source: R/combinadic.R

Description

Inverts the binomial coefficient for general (n,k).

Usage

1

Arguments

x

the binomial coefficient.

k

the denominator of the binomial coefficient x.

Details

Given a quantity x = choose(n, k) with fixed k, finds n.

Value

the numerator of the binomial coefficient, if the Otherwise

Examples

1
2
3
4
100 == inverse.choose(choose(100,2), k = 2)
# TRUE 
12345 == inverse.choose(choose(12345, 5), k = 5)
# TRUE

simplextree documentation built on Sept. 13, 2020, 5:06 p.m.