XLPack 6.1
C/C++ API Reference Manual
Loading...
Searching...
No Matches

◆ _spence()

double _spence ( double  x)

Spence's function (dilogarithm) Li2(x)

Purpose
spenc computes a Spence's function (dilogarithm).
Li2(x) = ∫ -ln(1-t)/t dt [0, x]
Returns
Spence's function Li2(x).
Parameters
[in]xArgument x.
Error handling
  • Range error (ERANGE) may occur.