Re: ISO module for binomial coefficients, etc.

2010-01-27 Thread Peter Pearson
On Sun, 24 Jan 2010 16:11:03 -0500, Dave Angel da...@ieee.org 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

Re: ISO module for binomial coefficients, etc.

2010-01-27 Thread Daniel Stutzbach
On Sat, Jan 23, 2010 at 4:55 PM, kj no.em...@please.post 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

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

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

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
Alf P. Steinbach wrote: div class=moz-text-flowed style=font-family: -moz-fixed* 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

Re: ISO module for binomial coefficients, etc.

2010-01-24 Thread casevh
On Jan 23, 2:55 pm, kj no.em...@please.post 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

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. --

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