Is `scipy.misc.comb` faster than an ad-hoc binomial computation?
Referring to the source code of scipy.misc.comb, the update routine of the result is: val = 1 for j in xrange(min(k, N-k)): val = (val*(N-j))//(j+1) return val whereas the update routine you suggested is: ntok = 1 ktok = 1 for t in xrange(1, min(k, n – k) + 1): ntok *= n ktok *= … Read more