Computes the dilogarathm function, also called Spence's function.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static double DiLog(
	double x
)
Public Shared Function DiLog ( _
	x As Double _
) As Double
public:
static double DiLog(
	double x
)

Parameters

x
Double
The argument, which must be less than or equal to unity.

Return Value

The value Li2(x).

Remarks

The dilogarithm can be defined by an infinite sum.

The function gets is name from the similiarity of this series to the expansion of ln(1-x), the difference being that the integer in the denominator is raised to the second power.

Li2(x) is real for -∞ < x ≤ 1; for values outside this range, use the complex version DiLog(Complex).

See Also