[SciPy-user] help with precision for big numbers

Alan G Isaac aisaac at american.edu
Tue May 13 10:17:06 EDT 2008


On Tue, 13 May 2008, Johann Cohen-Tanugi apparently wrote:
> sp.factorial(Non+Noff-i)/sp.factorial(Non-i)

So Damien deduced the problem.  But if you are doing this 
a lot, I wonder if you can get some gain by replacing the 
above expression with a helper function. (I just mean to 
observe that once you compute 33! the other values of this 
expression are very simple multiples of 33!.

fwiw,
Alan Isaac






More information about the SciPy-User mailing list