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. For more information, see the description for imsl_f_machine.
Example
In this example, imsl_f_erfce(1.0) is computed and printed.
#include <imsl.h>
#include <stdio.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