Numerical approximations of the error function