The function li(
x) is related to the
exponential integral Ei(
x) via the equation : \operatorname{li}(x)=\hbox{Ei}(\ln x) , which is valid for
x > 0. This identity provides a series representation of li(
x) as : \operatorname{li}(e^u) = \hbox{Ei}(u) = \gamma + \ln |u| + \sum_{n=1}^\infty {u^{n}\over n \cdot n!} \quad \text{ for } u \ne 0 \, , where
γ ≈ 0.57721 56649 01532 ... is the
Euler–Mascheroni constant. For the complex function the formula is : \operatorname{li}(e^u) = \hbox{Ei}(u) = \gamma + \ln u + \sum_{n=1}^\infty {u^{n}\over n \cdot n!} \quad \text{ for } u \ne 0 \, , (without taking the absolute value of u). A more rapidly convergent series by
Ramanujan is : \operatorname{li}(x) = \gamma + \ln |\ln x| + \sqrt{x} \sum_{n=1}^\infty \left( \frac{ (-1)^{n-1} (\ln x)^n} {n! \, 2^{n-1}} \sum_{k=0}^{\lfloor (n-1)/2 \rfloor} \frac{1}{2k+1} \right). Again, for the meromorphic complex function the term \ln|\ln u| must be replaced by \ln\ln u. == Asymptotic expansion ==