[v3] Fix negative_binomial_distribution

Paolo Carlini pcarlini@gmail.com
Fri Mar 25 10:10:00 GMT 2011


... tweaking the fix like this makes for slightly faster repeated calls 
(spares a division) and also makes clearer that we had a plain typo p / 
(1 - p) for (1 - p) / p, grrr.. Double checked Devroye in the meanwhile.

Committed to mainline, will be in 4.6.1.

Paolo.

///////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_nbinomial_2
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110325/2390d7c4/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_nbinomial_2
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110325/2390d7c4/attachment-0001.ksh>


More information about the Gcc-patches mailing list