Computes the exponential integral.

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public static double IntegralE(
	int n,
	double x
)
Public Shared Function IntegralE ( _
	n As Integer, _
	x As Double _
) As Double
public:
static double IntegralE(
	int n, 
	double x
)
static member IntegralE : 
        n : int * 
        x : float -> float 

Parameters

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

Return Value

The value of En(x).

Remarks

The exponential integral is defined as:

It is related to the incomplete Gamma function for negative, integer shape parameters by Γ(-k, x) = Eik+1(x) / xk.

In hydrology, E1(x) is sometimes called the Well function.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionx is negative.

See Also