import mpmath
mpmath.mp.dps = 120
f = lambda x: mpmath.exp(-x - mpmath.e1(x))
mpmath.quad(f, [0, 1, mpmath.inf])The attached generator computes (2) with an interval Taylor method for the Dickman-de Bruijn function $\rho$. On each unit interval it carries $\rho$ as a midpoint Taylor polynomial with ball coefficients, applies $u\rho'(u)=-\rho(u-1)$ coefficient by coefficient, and includes explicit geometric tails from the series for $1/u$ and $(u+1)^{-2}$. The tail after the last computed interval is bounded by monotonicity of $\rho$.