Click or drag to resize

SpecialFunctionsPolyLogarithm Method

The polylogarithm, Li_n(x). Li_n(x) reduces to the Riemann zeta function for x = 1.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double PolyLogarithm(
	int n,
	double x
)

Parameters

n  Int32
Any integer greater that -1.
x  Double
A real number x <= 1.

Return Value

Double
The polylogrithm
C#
            inf   k
             -   x
Li (x)  =    >   ---  .
  n          -     n
            k=1   k
This sum reduces to the Riemann zeta function for x = 1. For n = 2 this function is called the dilogarithm and for n = 3 the trilogarithm.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe parameter x must be less than one inclusive.
ArgumentOutOfRangeExceptionThe parameter n must be non-negative.
See Also