Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1294-standardlibrary-mathematics-stat-mathsubfunctions-statmathbinomialcoefficient.md
T
2026-06-23 21:47:51 +08:00

447 B

MathBinomialCoefficient

Calculates the binomial coefficient: C(n,k)=n!/(k!*(n-k)!).

long  MathBinomialCoefficient(
   const int  n,      // the total number of elements
   const int  k       // the number of elements in combination
   )

Parameters

n

[in] The number of elements.

k

[in] The number of elements for each combination.

Return Value

The number of combinations of N choose K.