def EvalExponentialCdf(x, lam):
 return (1 - math.exp(((- lam) * x)))

def EvalExponentialCdf ( x , lam ) : return ( 1 - math . exp ( ( ( - lam ) * x ) ) )
evaluates cdf of the exponential distribution with parameter lam .