1 #ifndef UTIL_BINOMIAL_H 2 #define UTIL_BINOMIAL_H 11 #include <util/containers/GArray.h> 12 #include <util/math/Rational.h> 13 #include <util/containers/Array.h> 39 static void setup(
int nMax);
51 static int coeff(
int n,
int m);
static int coeff(int n, int m)
Return coefficient "n choose m", or C(n, m) = n!/(m!(n-m)!).
File containing preprocessor macros for error handling.
static void setup(int nMax)
Precompute all combinations C(n, m) up to n = nMax.
Class for binomial coefficients (all static members)
Utility classes for scientific computation.