This function evaluates the exponential integral for arguments greater than zero and the Cauchy principal value of the integral for arguments less than zero.
X — Argument for which the integral is to be evaluated. (Input)
Specific: The specific interface names are S_E1 and D_E1.
Double: The double precision function name is DE1.
The alternate definition of the exponential integral, E1(x), is
The path of integration must exclude the origin and not cross the negative real axis.
The argument x must be large enough that e−x does not overflow, and x must be small enough to insure that e−x/x does not underflow.
3 2 The function underflows because X is too large.
In this example, E1 (1.3) is computed and printed.
99999 FORMAT (' E1(', F6.3, ') = ', F6.3)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |