This function calculates the expected value of \(1/N\)
given \(N > 0\), where \(N\) is a Poisson random variable
with mean \(\mu\).
If the library gsl is loaded, and if exact=TRUE
(the
default), then the calculation uses
the exact analytic formula
$$
\nu = \frac{e^{-\mu}}{1- e^{-\mu}}
\left( Ei(\mu) - \log \mu - \gamma \right)
$$
(see e.g. Grab and Savage, 1954)
where \(\nu\) is the desired reciprocal moment, and
$$
Ei(x) = \int_{-\infty}^x t e^{-t} dt
$$
is the first exponential integral, and
\(\gamma \approx 0.577\)
is the Euler-Mascheroni constant.
If gsl is not loaded, or if exact=FALSE
is specified,
the value is computed approximately (and more slowly)
by summing over the possible values of \(N\) up to a finite limit.