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