pymead.utils.nchoosek.nchoosek#

nchoosek(n: int, k: int)[source]#

Computes the mathematical combination

\[n \choose k\]
Parameters:
  • n (int) – Number of elements in the set

  • k (int) – Number of items to select from the set

Return type:

\(n \choose k\)