Computes the exponential integral.
Namespace:
Meta.Numerics.FunctionsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
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 Ein(x) = 1∫∞dt e-xt/tn.
It is related to the incomplete Gamma function for negative, integer shape parameters by ΓQ(-k, x) = Eik+1(x) / xk.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | n is negative. |
| System..::.ArgumentOutOfRangeException | x is negative. |