Qu

nchoosek

Builtin index · Core maths

result = nchoosek(n, k)

Input: n, k · Output: result

What it is

The binomial coefficient n choose k for non-negative integers, computed exactly.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = nchoosek(n, k)
n —not documented yet
k —not documented yet
2^53 —never a rounded value
Returns a number. Errors: k > n, a negative or non-integer argument, or a result above 2^53 (never a rounded value).

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.