xen-dev-utils
    Preparing search index...

    Function binomial

    • Calculate the Binomial coefficient n choose k.

      Parameters

      • n: number

        Size of the set to choose from.

      • k: number

        Number of elements to choose.

      Returns number

      The number of ways to choose k (unordered) elements from a set size n, or 0 when k is outside the range [0, n].