ISO module for binomial coefficients, etc.

casevh casevh at
Sun Jan 24 22:49:36 CET 2010

On Jan 23, 2:55 pm, kj <no.em... at> wrote:
> Before I go off to re-invent a thoroughly invented wheel, I thought
> I'd ask around for some existing module for computing binomial
> coefficient, hypergeometric coefficients, and other factorial-based
> combinatorial indices.  I'm looking for something that can handle
> fairly large factorials (on the order of 10000!), using floating-point
> approximations as needed, and is smart about optimizations,
> memoizations, etc.
> TIA!
> ~K

If you need exact values, gmpy ( has
basic, but fast, support for calculating binomial coefficients and
factorials. If you are floating point approximations, check out mpmath


More information about the Python-list mailing list