AdvancedMathPolyLog Method

Computes the polylogarithm function.

Definition

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

Parameters

n  Int32
The order, which must be non-negative.
x  Double
The argument, which must be less than or equal to one.

Return Value

Double
The value of Lin(x).

Remarks

The 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.

Exceptions

ArgumentOutOfRangeExceptionn is negative or x is greater than one.

See Also