AdvancedMathIntegralE Method

Computes the generalized exponential integral.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double IntegralE(
	int n,
	double x
)

Parameters

n  Int32
The order parameter.
x  Double
The argument, which must be non-negative.

Return Value

Double
The value of En(x).

Remarks

The generalized exponential integral is defined as:

It is related to the incomplete Gamma function (Gamma(Double, Double)) for negative, integer shape parameters.

For n=1, it expressible as a simple power series.

For negative x, E1(x) develops an imaginary part, but its real part is given by the Ei(x) function (IntegralEi(Double)).

To compute E1(z) in the entire complex plane, use Ein(Complex).

Sometimes the function E1(z) is called the exponential integral, and sometimes that name is used for Ei(x). In hydrology, E1(x) is sometimes called the Well function.

Exceptions

See Also