time-to-botec/js/node_modules/@stdlib/math/base/special/erfcinv
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00
..
docs feat: add the node modules 2022-12-03 12:44:49 +00:00
lib feat: add the node modules 2022-12-03 12:44:49 +00:00
scripts feat: add the node modules 2022-12-03 12:44:49 +00:00
package.json feat: add the node modules 2022-12-03 12:44:49 +00:00
README.md feat: add the node modules 2022-12-03 12:44:49 +00:00

erfcinv

Inverse complementary error function.

The inverse complementary error function is defined as

Inverse complementary error function.

where erf^{-1}(z) is the inverse error function.

Usage

var erfcinv = require( '@stdlib/math/base/special/erfcinv' );

erfcinv( x )

Evaluates the inverse complementary error function.

var y = erfcinv( 0.5 );
// returns ~0.4769

y = erfcinv( 0.8 );
// returns ~0.1791

y = erfcinv( 0.0 );
// returns Infinity

y = erfcinv( 2.0 );
// returns -Infinity

The domain of x is restricted to [0,2]. If x is outside this interval, the function returns NaN.

var y = erfcinv( -3.14 );
// returns NaN

If provided NaN, the function returns NaN.

var y = erfcinv( NaN );
// returns NaN

Examples

var linspace = require( '@stdlib/array/linspace' );
var erfcinv = require( '@stdlib/math/base/special/erfcinv' );

var x = linspace( 0.0, 2.0, 100 );
var y;
var i;

for ( i = 0; i < x.length; i++ ) {
    y = erfcinv( x[ i ] );
    console.log( 'x: %d, erfcinv(x): %d', x[ i ], y );
}