Evaluates a scaled function related to erfc(z).
#include <imsl.h>
f_complex imsl_c_erfe (f_complex z)
The type double complex function is imsl_z_erfe.
f_complex z (Input)
Complex
argument for which the function value is desired.
Complex scaled function value related to erfc(z).
Function imsl_c_erfe is defined to be

Let b = imsl_f_machine(2) be the largest floating-point number. The argument z must satisfy

or else the value returned is zero. If the argument z does not satisfy
(Áz)2 - (Âz)2 £ log b,
then b is returned. All other arguments are legal (Gautschi 1969, 1970).
In this example, imsl_c_erfe(2.5 + 2.5i) is computed and printed.
#include "imsl.h"
main()
{
f_complex value, z;
z = imsl_cf_convert(2.5, 2.5);
value = imsl_c_erfe(z);
printf("\n erfe(%2.3f + %2.3fi) = %2.3f + %2.3fi \n", z.re, z.im, value.re, value.im);
z.re, z.im, value.re, value.im);
}
erfe(2.500 + 2.500i) = 0.117 + 0.108i
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |