This is documentation for an old release of SciPy (version 0.18.1). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.special.spence¶
- scipy.special.spence(z) = <ufunc 'spence'>¶
Spence’s function, also known as the dilogarithm. It is defined to be
∫z0log(t)1−tdtfor complex z, where the contour of integration is taken to avoid the branch cut of the logarithm. Spence’s function is analytic everywhere except the negative real axis where it has a branch cut.
Note that there is a different convention which defines Spence’s function by the integral
−∫z0log(1−t)tdt;this is our spence(1 - z).