[Math] Numerical Approximations to the Cumulative Distribution Function of the Normal Distribution

normal distribution

I have been trying to write the code for the Cumulative Distribution function (CDF) of the normal distribution in C++. Since the cdf does not have a closed form solution of the integral, I was wondering what approximations are generally used for the implementation in any programming language. Can anyone please explain how the approximating function is equal to the integral/cdf in some detail? Thanks in advance.

Best Answer

Abramowitz and Stegun give a number of approximations. One with only five constants is accurate to $1.5 \cdot 10^{-7}$ Numerical Recipes page 221 has an expansion that quotes slightly better errors. Neither explains where they come from, but you could look at the references.