Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
MsgBox, % Round(BinomialCoefficient(5, 3))
|
||||
|
||||
;---------------------------------------------------------------------------
|
||||
BinomialCoefficient(n, k) {
|
||||
;---------------------------------------------------------------------------
|
||||
r := 1
|
||||
Loop, % k < n - k ? k : n - k {
|
||||
r *= n - A_Index + 1
|
||||
r /= A_Index
|
||||
}
|
||||
Return, r
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue