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

38 lines
754 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.
# MathBinomialCoefficientLog
Calculates the logarithm of the binomial coefficient: Log(C(n,k))=Log(n!/(k!*(n-k)!))
Version for integer arguments:
```
double  MathBinomialCoefficientLog(
   const int     n,      // the total number of elements
   const int     k       // the number of elements in combination
   )
```
Version for real arguments:
```
double  MathBinomialCoefficientLog(
   const double  n,      // the total number of elements
   const double  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 logarithm of C(n,k).