Special.Harmonic Number Method
Returns the nth Harmonic Number.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
The nth Harmonic Number.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static double HarmonicNumber(
int n
)
Parameters
- n Int32
- The degree of the coefficient.
Return Value
DoubleThe nth Harmonic Number.
Remarks
The nth Harmonic Number, Hn, is the sum of the reciprocals from 1 up to n.