//! Harmonic sums of weight 1.
use Complex;
use crate;
use cratecern_polygamma;
/// Compute the harmonic sum $S_1(N)$.
///
/// $$S_1(N) = \sum\limits_{j=1}^N \frac 1 j = \psi_0(N+1)+\gamma_E$$
/// with $\psi_0(N)$ the digamma function and $\gamma_E$ the Euler-Mascheroni constant.
/// Analytic continuation of harmonic sum $S_{-1}(N)$ for even moments.
/// Analytic continuation of harmonic sum $S_{-1}(N)$ for odd moments.