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

26 lines
447 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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.