XLPack 7.0
XLPack Numerical Library (Excel Worksheet Functions) Reference Manual
Loading...
Searching...
No Matches

◆ WSpence()

Function WSpence ( X As  Double)

Spence's function (dilogarithm) Li2(x)

Purpose
WSpence computes a Spence's function (dilogarithm).
Li2(x) = ∫ -ln(1-t)/t dt [0, x]
For abs(x) < 1, the following uniformly convergent expansion is valid.
Li2(x) = Σ x^k/k^2 (k = 1 to ∞)
Returns
Spence's function Li2(x).
Parameters
[in]XArgument x.