Returns the nth Harmonic Number.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
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
- Type: SystemInt32
The degree of the coefficient.
Return Value
Type:
DoubleThe
nth Harmonic Number.
The nth Harmonic Number, Hn, is the sum of the reciprocals from 1 up to n.
Reference