erfcinv
Inverse complementary error function
Syntax
Description
erfcinv(
returns
the value of the Inverse Complementary Error Function for each element of x
)x
.
For inputs outside the interval [0 2]
, erfcinv
returns NaN
.
Use the erfcinv
function to replace expressions
containing erfinv(1-x)
for greater accuracy when x
is
close to 1
.
Examples
Input Arguments
More About
Tips
You can also find the inverse standard normal probability distribution using the function
norminv
(Statistics and Machine Learning Toolbox). The relationship between the inverse complementary error functionerfcinv
andnorminv
isFor expressions of the form
erfcinv(1-x)
, use the inverse error functionerfinv
instead. This substitution maintains accuracy. Whenx
is close to1
, then1 - x
is a small number and might be rounded down to0
. Instead, replaceerfcinv(1-x)
witherfinv(x)
.
Extended Capabilities
Version History
Introduced before R2006a