XLPack 7.0
XLPack Numerical Library (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.