Chapter 9: Special Functions > erfce

erfce

Evaluates the exponentially scaled complementary error function.

Synopsis

#include <imsl.h>

float imsl_f_erfce (float x)

The type double function is imsl_d_erfce.

Required Arguments

float x (Input)
Argument for which the function value is desired.

Return Value

 Exponentially scaled complementary error function value.

Description

Function imsl_f_erfce computes

where erfc(x) is the complementary error function. See imsl_f_erfc  for its definition.

 

To prevent the answer from underflowing, x must be greater than

where b = imsl_f_machine(2) is the largest representable floating-point number.

Example

In this example, imsl_f_erfce(1.0) is computed and printed.

#include <imsl.h>

int main()

{

   float value, x;

 

   x = 1.0;

   value = imsl_f_erfce(x);

 

   printf("erfce(%6.3f) = %6.3f \n", x, value);

}

Output

 erfce( 1.000) =  0.428


RW_logo.jpg
Contact Support