| SpecialFunctionsHarmonicNumber(Int32) Method |
The harmonic number, Hn, is a truncated sum of the harmonic series.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double HarmonicNumber(
int n
)
Public Shared Function HarmonicNumber (
n As Integer
) As Double
public:
static double HarmonicNumber(
int n
)
static member HarmonicNumber :
n : int -> float
Parameters
- n Int32
- The harmonic number's index.
Return Value
DoubleThe nth harmonic number.
Exceptions Remarks The harmonic number is
n
--
Hn = > 1 / k
--
k = 1
The harmonic number is closely related to the digamma function. (Ref. http://mathworld.wolfram.com/HarmonicNumber.html )
See Also