[SciPy-user] help with precision for big numbers

Johann Cohen-Tanugi cohen@slac.stanford....
Tue May 13 09:39:04 CDT 2008

Right, I was considering that in case I would hit a performance penalty, 
but that would be in computation time, not in precision, right? But for 
now I am not ready to trade code readability for performance.
And yes, that was worth it, and a valid point...As a matter of fact such 
helper function could be part of scipy, if it is not there already.

Alan G Isaac wrote:
> 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
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user

More information about the SciPy-user mailing list