That equation is found here. My guess is that the latter method is more accurate, albeit more expensive, and that for n > 1e6, exp(-Z) is likely sufficiently accurate (the exponential is going to dominate) and computationally cheaper to make sense.
1 Like