Re: ISO module for binomial coefficients, etc.

2010-01-27 Thread Daniel Stutzbach
On Sat, Jan 23, 2010 at 4:55 PM, kj 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 somethi

Re: ISO module for binomial coefficients, etc.

2010-01-27 Thread Peter Pearson
On Sun, 24 Jan 2010 16:11:03 -0500, Dave Angel wrote: > I didn't think of simply summing the logs. A couple terms of Stirling's approximation work pretty well: def log_fact_half( N ): """log_fact_half( n ) returns the natural logarithm of the factorial of n/2. n need not be an integer. D

Re: ISO module for binomial coefficients, etc.

2010-01-24 Thread Mel
Dave Angel wrote: > But I still think there must be code for the gamma function that would > be quicker. But I haven't chased that lead. Log of the gamma function is also an algorithm in its own right (e.g. published in _Numerical Recipes_.) Mel. -- http://mail.python.org/mailman/li

Re: ISO module for binomial coefficients, etc.

2010-01-24 Thread casevh
On Jan 23, 2:55 pm, kj 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 ha

Re: ISO module for binomial coefficients, etc.

2010-01-24 Thread Dave Angel
Alf P. Steinbach wrote: * Dave Angel: kj 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 somethin

Re: ISO module for binomial coefficients, etc.

2010-01-24 Thread Alf P. Steinbach
* Dave Angel: kj 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

Re: ISO module for binomial coefficients, etc.

2010-01-24 Thread Dave Angel
kj 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 factorial

Re: ISO module for binomial coefficients, etc.

2010-01-24 Thread idrevetnom
Maybe this could be of interest : http://tnt.math.metro-u.ac.jp/nzmath/manual/modules/combinatorial.html hope this helps Id -- http://mail.python.org/mailman/listinfo/python-list

ISO module for binomial coefficients, etc.

2010-01-23 Thread kj
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