C338: Exponential Integral for Complex Argument

Author(s): K.S. Kölbig Library: MATHLIB
Submitter: Submitted: 01.05.1990
Language: Fortran Revised: 15.03.1993

Function subprograms CEXPIN and WEXPIN calculate the the exponential integral

displaymath95

for complex arguments z.

The double-precision version WEXPIN is available only on computers which support a COMPLEX*16 Fortran data type.

Structure:

FUNCTION subprograms
Use Entry Names : CEXPIN, WEXPIN
Files referenced : Unit 6
External References: MTLMTR, ABEND

Usage:

In any arithmetic expression,

CEXPIN(Z) or WEXPIN(Z) has the value tex2html_wrap_inline99 ,

where CEXPIN is of type COMPLEX, WEXPIN is of type COMPLEX*16, and Z has the same type as the function name.

Method:

Padé approximants are used to compute E(z) = E(x + iy) in the following (partly overlapping) regions of the z-plane:

(i) tex2html_wrap_inline105 tex2html_wrap_inline107 tex2html_wrap_inline109 ,
(ii) tex2html_wrap_inline111 tex2html_wrap_inline113 tex2html_wrap_inline115 ,
(iii) tex2html_wrap_inline117 tex2html_wrap_inline119 (x < - 12).

In the remaining region, consisting mainly of a strip along the negative real axis, E(z) is computed by numerical integration (which is very much slower than the evaluation of the Padé approximations).

Accuracy:

CEXPIN (except on CDC and Cray computers) has full single-precision accuracy. For most values of the argument Z, WEXPIN (and CEXPIN on CDC and Cray computers) has an accuracy of approximately two significant digits less than the machine precision.

Error handling:

Error C338.1: Numerical integration not successful (unlikely). The function value is set equal to zero, and a message is written on Unit 6, unless subroutine MTLSET (N002) has been called.

References:

  1. Y.L. Luke, the special functions and their approximations, v. II, (Academic Press, New York 1969) 198-199, 402-416.
tex2html_wrap_inline125

Michel Goossens Tue Jun 4 22:27:17 METDST 1996