R = erfcinv(X)
| Parameter | Description |
|---|---|
| X | a real single or real double scalar, vector, matrix, or multidimensional array. Sparse and complex inputs are not supported. |
| Parameter | Description |
|---|---|
| R | inverse complementary error function values, returned with the same size and floating-point class as X. |
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.
R = erfcinv(0.3)
V = [-10 0 0.5 1.3 2 Inf];
R = erfcinv(V)
M = [0.1 1.2; 1 0.9];
R = erfcinv(M)
x = 1e-100;
A = erfinv(1 - x);
B = erfcinv(x);
| Version | Description |
|---|---|
| 1.17.0 | initial version |