Computes the complex dilogarithm function, also called Spence's function.
- z (Complex)
- The complex argument.
The value Li2(z).
The image below shows the complex dilogarithm function near the origin, using domain coloring.

The image below shows the complex dilogarithm function near the origin, using domain coloring.
