AdvancedMathIntegralEi Method

Computes the principal value of the exponential integral.

Definition

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

Parameters

x  Double
The argument, which must be non-negative.

Return Value

Double
The value of Ei(x).

Remarks

The function Ei(x) appears in the evaluation of some indefinite integrals involving exponents and in number theory in the approximation li(x) = Ei(ln x) to the cumulative distribution of primes.

Ei(x) is related to the real part of E1(x) for negative arguments by:

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

Exceptions

See Also