//! Harmonic sums of weight 2.
use Complex;
use crateZETA2;
use crate;
use cratecern_polygamma;
/// Compute the harmonic sum $S_2(N)$.
///
/// $$S_2(N) = \sum\limits_{j=1}^N \frac 1 {j^2} = -\psi_1(N+1)+\zeta(2)$$
/// with $\psi_1(N)$ the trigamma function and $\zeta$ the Riemann zeta function.
/// Analytic continuation of harmonic sum $S_{-2}(N)$ for even moments.
/// Analytic continuation of harmonic sum $S_{-2}(N)$ for odd moments.