Premium problem41. Waiting Longer Than t

Easy Locked

Events arrive as a Poisson process with rate rate per unit time, so the wait until the next one is Exponential(rate)\mathrm{Exponential}(\text{rate}). Return the probability that you wait longer than t.

P(T>t)=e−λtP(T > t) = e^{-\lambda t}

Input

rate = 2.0
t = 1.0

Output

0.1353352832366127

Premium problem

This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.

Implement solve(...)