Function: binomCoef()
binomCoef(
n,k):number
Defined in: functions/binomCoef.ts:13
Returns the binomial coefficient of the given integers.
Parameters
n
number
The first integer.
k
number
The second integer. Must be 0 or greater and less than or equal to n.
Returns
number
The binomial coefficient of n and k.
Example
binomCoef(5, 2); // 10