Computes the error function.
- x (Double)
- The argument.
The value of erf(x).
The error can be defined via a Gaussian integral.

The area under a bell curve (NormalDistribution) within ∓z standard deviations of the mean is given by erf(z/√2).
For large values of x, erf(x) ≈ 1 to within floating-point accuracy. To obtain accurate values of erfc(x) = 1 - erf(x) in this range, use the Erfc(Double) function.
The error function for complex arguments can be computed using Faddeeva(Complex).