Click or drag to resize

SpecialFunctionsHarmonicNumber(Double) Method

The harmonic number, Hn, which is a truncation of the harmonic series.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double HarmonicNumber(
	double n
)

Parameters

n  Double
The harmonic number's index.

Return Value

Double
The nth harmonic number.
Remarks
The harmonic number is
C#
      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