[SciPy-User] Simple math question

Pierre Barbier de Reuille pierre at barbierdereuille.net
Wed Feb 13 08:23:50 EST 2013


Assuming 0 <= p <= 1, I don't see the problem there.

-- 
Barbier de Reuille Pierre


On 13 February 2013 13:05, Neal Becker <ndbecker2 at gmail.com> wrote:

> A basic combinatorial prob problem, which you will no doubt recognize,
> would
> have a solution:
>
> 1 - (1 - p)^n
>
> Any suggestion to calculate this, when n -> 10^5 ?
>
> Best I can think of is
>
> clip (n*p, -nan, 1)
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20130213/006392cd/attachment.html>


More information about the SciPy-User mailing list