Sorry I somehow missed #18.
Can the formula:
HarmonicNumber(n) == EulerGamma + PolyGamma(0, 1 + n)
be used in harmonic
for non-integer arguments?
|
if ( !Number.isInteger(n) ) throw Error( 'Noninteger index for harmonic number' ); |
Also for 2 arguments:
HarmonicNumber(n, r) == -HurwitzZeta(r, 1 + n) + Zeta(r)