Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Binomial coefficient or all combinations

`b = nchoosek(n,k)`

`C = nchoosek(v,k)`

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?