v?Erfc

Computes the complementary error function value of vector elements.

Syntax

FORTRAN:

call vserfc( n, a, y )

call vmserfc( n, a, y, mode )

call vderfc( n, a, y )

call vmderfc( n, a, y, mode )

C:

vsErfc( n, a, y );

vmsErfc( n, a, y, mode );

vdErfc( n, a, y );

vmdErfc( n, a, y, mode );

Include Files

Input Parameters

Name

Type

Description

n

FORTRAN 77: INTEGER

Fortran 90: INTEGER, INTENT(IN)

C: const int

Specifies the number of elements to be calculated.

a

FORTRAN 77: REAL for vserfc, vmserfc

DOUBLE PRECISION for vderfc, vmderfc

Fortran 90: REAL, INTENT(IN) for vserfc, vmserfc

DOUBLE PRECISION, INTENT(IN) for vderfc, vmderfc

C: const float* for vsErfc, vmsErfc

const double* for vdErfc, vmdErfc

FORTRAN: Array that specifies the input vector a.

C: Pointer to an array that contains the input vector a.

mode

FORTRAN 77: INTEGER*8

Fortran 90: INTEGER(KIND=8), INTENT(IN)

C: const MKL_INT64

Overrides global VML mode setting for this function call. See vmlSetMode for possible values and their description.

Output Parameters

Name

Type

Description

y

FORTRAN 77: REAL for vserfc, vmserfc

DOUBLE PRECISION for vderfc, vmderfc

Fortran 90: REAL, INTENT(OUT) for vserfc, vmserfc

DOUBLE PRECISION, INTENT(OUT) for vderfc, vmderfc

C: float* for vsErfc, vmsErfc

double* for vdErfc, vmdErfc

FORTRAN: Array that specifies the output vector y.

C: Pointer to an array that contains the output vector y.

Description

The Erfc function computes the complementary error function values for elements of the input vector a and writes them to the output vector y.

The complementary error function is defined as follows:


Equation

Useful relations:

Equation

Equation

where

Equation

is the cumulative normal distribution function.

Equation

where Φ-1(x) and erf-1(x) are the inverses to Φ(x) and erf(x) respectively.

See also Figure "Erf Family Functions Relationship" in Erf function description for Erfc function relationship with the other functions of Erf family.

Special Values for Real Function v?Erfc(x)
Argument Result VML Error Status Exception
X > underflow +0 VML_STATUS_UNDERFLOW UNDERFLOW
+ +0    
- +2    
QNAN QNAN    
SNAN QNAN   INVALID

See Also


Submit feedback on this help topic