Special.HarmonicNumber Method

Returns the nth Harmonic Number.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static double HarmonicNumber(
	int n
)

Parameters

n  Int32
The degree of the coefficient.

Return Value

Double
The nth Harmonic Number.

Remarks

The nth Harmonic Number, Hn, is the sum of the reciprocals from 1 up to n.

See Also