Meta.Numerics Library
IntegralE Method (n, x)
Meta.NumericsMeta.Numerics.FunctionsAdvancedMathIntegralE(Int32, Double)
Computes the exponential integral.
Declaration Syntax
C#Visual BasicVisual 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, which must be non-negative.
x (Double)
The argument, which must be non-negative.
Return Value
The value of Ein(x).
Remarks

The exponential integral is defined as:

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

Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionn is negative.
ArgumentOutOfRangeExceptionx is negative.