Evaluate the error function erf(x), the complementary error function erfc(x) and the inverse error function to high precision, with their link to normal probabilities.
erf(x) = (2/√π) ∫₀ˣ e^(−t²) dt
The error function, erf(x), is the area under the bell curve e^(−t²) from 0 to x, scaled so that it runs from −1 to 1. It has no formula in elementary functions, so it's computed numerically.
In statistics it is the normal distribution in disguise: the chance a normal value lies within ±z standard deviations of the mean is erf(z/√2). The name comes from its origins in the theory of measurement errors.
In physics and engineering it describes diffusion. How far heat soaks into a cold block, or carbon into steel, follows the complementary error function erfc(x) = 1 − erf(x).
As given in the NIST Digital Library of Mathematical Functions, chapter 7. See Sources.
This page computes erf through the regularised incomplete gamma function, P(½, x²), which keeps erfc accurate even when it's tiny.
Doubling the depth to 1 mm drops it to 24%. Because depth scales with √t, reaching the same level twice as deep takes four times as long.
| x | erf(x) | erfc(x) | Normal ±z (z = x√2) |
|---|---|---|---|
| 0.1 | 0.112463 | 0.887537 | ±0.141 |
| 0.25 | 0.276326 | 0.723674 | ±0.354 |
| 0.5 | 0.5205 | 0.4795 | ±0.707 |
| 0.7071 | 0.682689 | 0.317311 | ±1 |
| 1 | 0.842701 | 0.157299 | ±1.414 |
| 1.5 | 0.966105 | 0.033895 | ±2.121 |
| 2 | 0.995322 | 0.004678 | ±2.828 |
| 3 | 0.999978 | 2.209e-5 | ±4.243 |
About 0.842701.
Odd: erf(−x) = −erf(x). erfc(−x) = 2 − erfc(x).
To at least 10 significant figures across the range, using a series and continued fraction for the incomplete gamma function.
Tail probabilities, diffusion and heat conduction, and bit-error rates in communications.
Φ(z) = ½(1 + erf(z/√2)). The z-score and normal distribution calculators do this for you.
The x that gives erf(x) = y. It is used to turn a probability into a number of standard deviations.
J. W. L. Glaisher named it in 1871 because of its role in the theory of observational errors.
Yes: ERF, ERFC, ERF.PRECISE and ERFC.PRECISE. Excel has no inverse, but NORM.S.INV can be rescaled.