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
Hn is the nth partial sum of the harmonic series.
Since the harmonic series diverges, Hn grows without bound as n increases, but it does so extremely slowly, approximately as log(n).
ArgumentOutOfRangeException | n is negative. |
ArgumentOutOfRangeException | n is negative. |