Evaluates the real complementary error function erfc(x).
#include <imsl.h>
float imsl_f_erfc (float x)
The type double procedure is imsl_d_erfc.
float x
(Input)
Point at which the complementary error function is to be
evaluated.
The value of the complementary error function erfc(x).
The complementary error function erfc(x) is defined to be

The argument x must not be so large that the result
underflows. Approximately,
x should be less than

where s is the smallest representable floating-point number.

Figure 9- 2 Plot of erfc(x)
Evaluate the error function at x = 1/2.
#include
<imsl.h>
main()
{
float x = 0.5;
float ans;
ans =
imsl_f_erfc(x);
printf("erfc(%f) = %f\n", x,
ans);
}
erfc(0.500000) = 0.479500
IMSL_LARGE_ARG_UNDERFLOW The argument x is so large that the result underflows.
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |