AdvancedMathPolyLog Method |
Computes the polylogarithm function.
Namespace:
Meta.Numerics.Functions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.0.5.0 (4.0.5.0)
Syntaxpublic static double PolyLog(
int n,
double x
)
Public Shared Function PolyLog (
n As Integer,
x As Double
) As Double
public:
static double PolyLog(
int n,
double x
)
static member PolyLog :
n : int *
x : float -> float
Parameters
- n
- Type: SystemInt32
The order, which must be non-negative. - x
- Type: SystemDouble
The argument, which must be less than or equal to one.
Return Value
Type:
DoubleThe value of Li
n(x).
RemarksThe nth polylog of x is defined via the series:

Its name comes from the fact that this is a generalization of the logarithm
series. For n = 1 it reduces to -log(1-x). For n = 2 it reduces to the DiLog(Double) function.
The polylogarithm function becomes complex for arguments larger than one.
See Also