Factorials
From charlesreid1
Calculating Binomial Coefficients in Python
Because this is really annoyingly hard to find in the Scipy/Numpy documentation:
In [1]: from scipy.special import comb, perm In [2]: comb(6,3) Out[2]: 20.0 In [3]: perm(8,4) Out[3]: 1680.0