This function evaluates the inverse complementary error function.
ERFCI — Function value. (Output)
X — Argument for which the function value is desired. (Input)
Generic: ERFCI (X)
Specific: The specific interface names are S_ERFCI and D_ERFCI.
Single: ERFCI (X)
Double: The double precision function name is DERFCI.
The function ERFCI(X) computes the inverse of the complementary error function erfc x, defined in ERFC.
The function ERFCI(X) is defined for 0 < x < 2. If xmax< x < 2, then the answer will be less accurate than half precision. Very approximately,
Where ε = AMACH(4) is the machine precision.
Figure 5- 4 Plot of erf−1(x)
Informational error
Type Code
3 2 Result of ERFCI(X) is accurate to less than one-half precision because the argument is too close to 2.0 .
In this example, erfc−1(erfc(1.0)) is computed and printed.
USE ERFCI_INT
USE ERFC_INT
USE UMACH_INT
IMPLICIT NONE
! Declare variables
INTEGER NOUT
REAL VALUE, X
! Compute
X = ERFC(1.0)
VALUE = ERFCI(X)
! Print the results
CALL UMACH (2, NOUT)
WRITE (NOUT,99999) X, VALUE
99999 FORMAT (' ERFCI(', F6.3, ') = ', F6.3)
END
ERFCI( 0.157) = 1.000
PHONE: 713.784.3131 FAX:713.781.9260 |