-x / pi*I\ / pi*I\
/ pi*I\ -1 EulerGamma 2 - 2*x e - 2*log\x*e / + 2*Ei\x*e /
- Ei\e / - e + pi*I + ---------- + ------- - --- - -------------------------------- + EulerGamma
x 2 2 2*x
2*x x
$$- \frac{1}{e} + \gamma - \operatorname{Ei}{\left(e^{i \pi} \right)} + i \pi - \frac{- 2 \log{\left(x e^{i \pi} \right)} + 2 \operatorname{Ei}{\left(x e^{i \pi} \right)}}{2 x} + \frac{\gamma}{x} + \frac{2 - 2 x}{2 x^{2}} - \frac{e^{- x}}{x^{2}}$$
-Ei(exp_polar(pi*i)) - exp(-1) + pi*i + EulerGamma/x + (2 - 2*x)/(2*x^2) - exp(-x)/x^2 - (-2*log(x*exp_polar(pi*i)) + 2*Ei(x*exp_polar(pi*i)))/(2*x) + EulerGamma