Error function - Wikipedia
https://en.wikipedia.org/wiki/Error_function• Abramowitz and Stegungive several approximations of varying accuracy (equations 7.1.25–28). This allows one to choose the fastest approximation suitable for a given application. In order of increasing accuracy, they are: (maximum error: 5×10 ) where a1 = 0.278393, a2 = 0.230389, a3 = 0.000972, a4 = 0.078108 (maximum error: 2.5×10 ) where p = 0.47047, a1 = 0.3480242, a2 = −0.0958798, a3 = 0.7478556 erf x ≈ 1 − 1 ( 1 + a 1 x + a 2 x 2 + ⋯ + a 6 x 6 ) 16 , x ≥ 0 {\displayst…