sf
Returns the survival function value at k.
When the CDF is far from 1, computes 1 - cdf(k) directly. When the CDF exceeds 0.9, switches to summing the upper tail from k+1 to avoid catastrophic cancellation.
Return
the probability of observing a value strictly greater than k.
Parameters
k
the integer point at which to evaluate the survival probability.