In article <[EMAIL PROTECTED]>, Raven <[EMAIL PROTECTED]> wrote: >Well, what to say? I am very happy for all the solutions you guys have >posted :-) >For Paul: >I would prefer not to use Stirling's approximation > > >The problem with long integers is that to calculate the hypergeometric >I need to do float division and multiplication because integer division >returns 0. A solution could be to calculate log(Long_Factorial_Integer) . . . This thread confuses me.
I've lost track of the real goal. If it's an exact calculation of binomial coefficients--or even one of several other potential targets mentioned--I echo Steven D'Aprano, and ask, are you *sure* the suggestions already offered aren't adequate? Also, I think you might not realize how accurate Stirling's approximation (perhaps to second order) is in the range of interest. -- http://mail.python.org/mailman/listinfo/python-list