17 lines
306 B
Markdown
17 lines
306 B
Markdown
|
# Statistics Tools
|
||
|
|
||
|
## SnCk
|
||
|
Sum of combinations.
|
||
|
The usual nCk function returns the number of combinations for k elements out of n.
|
||
|
This program sums up the combinations for 1 .. k out of n.
|
||
|
|
||
|
```
|
||
|
k
|
||
|
====
|
||
|
\ 1
|
||
|
n! > -----------
|
||
|
/ k! (n - k)!
|
||
|
====
|
||
|
k = 1
|
||
|
```
|