[…] especially if the ratio x[i]/σ is large for any data point. There is a numerical trick, called the sum-of-exponentials trick, which can help stabilize the computation and prevent division-by-zero errors. The following SAS …