|
|
◆ Spence_sub()
| Sub Spence_sub |
( |
Ret As |
Double, |
|
|
X As |
Double, |
|
|
Optional Info As |
Long |
|
) |
| |
Spence's function (dilogarithm) Li2(x) (Subroutine version)
- Purpose
- Computes a Spence's function (dilogarithm).
Li2(x) = ∫ -ln(1-t)/t dt [0, x]
- Parameters
-
| [out] | Ret | Spence's function Li2(x). |
| [in] | X | Argument x. |
| [out] | Info | (Optional)
= 0: Successful exit.
= 1: Floating point range error. |
|