diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2025-11-14 14:41:29 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2025-11-14 14:41:29 +0100 |
| commit | 58be3612823936f85258241528d2973adf213011 (patch) | |
| tree | f3d662c3e512e465c43fd4d81578fe664666ff55 /content/math/binomial3.cpp | |
| parent | e1c5a6c9b3737c75eaac7ec5d71673d74a1ac117 (diff) | |
rename calc_binom() to binom()
Diffstat (limited to 'content/math/binomial3.cpp')
| -rw-r--r-- | content/math/binomial3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/math/binomial3.cpp b/content/math/binomial3.cpp index 7a6ab4e..8a51dac 100644 --- a/content/math/binomial3.cpp +++ b/content/math/binomial3.cpp @@ -1,4 +1,4 @@ -ll calc_binom(ll n, ll k, ll p) { +ll binom(ll n, ll k, ll p) { assert(n < p); //wichtig: sonst falsch! if (k > n) return 0; ll x = k % 2 != 0 ? p-1 : 1; |
