Double Harmonic(Int32 n)
Harmonic number H(n).
| # | Name | Description |
|---|---|---|
| 1 | n | upper summation index |
| 2 | non-negative integer. |
Returns: Double - the harmonic number H(n).
Remarks:
The n-th harmonic number is the finite sum
H_n = sum_(k=1)^n1/k .
Domain: n integer. Defined behavior: returns the exact finite sum; it is strictly increasing in n, equals (see Dew.Math.Units.Probabilities.GenHarmonic), and satisfies H_n=psi(n+1)+gamma where gamma is the Euler-Mascheroni constant. For n <= 0 the empty sum is 0.
See Also: Probabilities.GenHarmonic