erfcinv
Inverse complementary error function
📝Syntax
R = erfcinv(X)
📥Input Arguments
Parameter Description
X a real single or real double scalar, vector, matrix, or multidimensional array. Sparse and complex inputs are not supported.
📤Output Arguments
Parameter Description
R inverse complementary error function values, returned with the same size and floating-point class as X.
📄Description

erfcinv computes the inverse complementary error function element by element.

The inverse complementary error function is defined by:

$$erfc(erfcinv(x)) = x$$

Values outside the interval [0, 2] return NaN. The values 0 and 2 return Inf and -Inf, respectively.

Use erfcinv instead of erfinv(1 - x) when x is close to zero to avoid round-off errors.

💡Examples
Find the inverse complementary error function of a scalar.
R = erfcinv(0.3)
Evaluate boundary and out-of-domain values.
V = [-10 0 0.5 1.3 2 Inf];
R = erfcinv(V)
Find the inverse complementary error function of the elements of a matrix.
M = [0.1 1.2; 1 0.9];
R = erfcinv(M)
Avoid round-off from erfinv(1 - x) for very small x.
x = 1e-100;
A = erfinv(1 - x);
B = erfcinv(x);
🔗See Also
erfcerfinverferfcx
🕔Version History
Version Description
1.17.0 initial version
Edit this page on GitHub