Computes the dilogarithm function, or Spence's Integral.

![]() |
x is the input argument. |
![]() |
diln(x) returns the value of the dilogarithm function. |
The following equation defines the dilogarithm function.

The following intervals for the input values define the dilogarithm function.

The function is defined for nonnegative real values of x.