Binomial coefficient or all combinations

When

`b = nchoosek(n,k)`

is sufficiently large,`nchoosek`

displays a warning that the result might not be exact. In this case, the result is only accurate to 15 digits for double-precision inputs, or 8 digits for single-precision inputs.`C = nchoosek(v,k)`

is only practical for situations where`length(v)`

is less than about`15`

.

Was this topic helpful?