I need to compute combinatorials (nCr) in Python but cannot find the function to do that in
comb = calculate_combinations(n, r)
See scipy.misc.comb. When
exact is False, it uses the gammaln function to obtain good precision without taking much time. In the exact case it returns an arbitrary-precision integer, which might take a long time to compute.