For Li(x) with x.i == 0, use the real Li(x.r) function.
In this case Li(x) approximates the prime counting function Pi(x). See Ri(x) Riemann Prime Counting Function for a better approximation of Pi(x).
For complex x, Li(x) is computed using the Exponential Integral
Return to Complex Computations
Return to Harry's Home Page