SootLib
|
#include <exception>
Go to the source code of this file.
Functions | |
double | binomial_coefficient (unsigned r, unsigned k) |
double binomial_coefficient | ( | unsigned | r, |
unsigned | k | ||
) |
Josh Bedwell - June 2021
This file holds a binomial coefficient function This function calculates a binomial coefficient efficiently by enumerating several factorials Hardcoded factorials.
r | input: r < 35 and r-k < 35 |
k | input: k < 35 and r-k < 35 |
Definition at line 24 of file binomial.h.