Evaluates the inverse complementary error function.
x
[0,2]
NaN
input value
function value
var y = erfcinv( 0.5 ); // returns ~0.4769
var y = erfcinv( 0.8 ); // returns ~0.1791
var y = erfcinv( 0.0 ); // returns Infinity
var y = erfcinv( 2.0 ); // returns -Infinity
var y = erfcinv( NaN ); // returns NaN
Evaluates the inverse complementary error function.
Notes
x
is restricted to[0,2]
. Ifx
is outside this interval, the function returnsNaN
.