AdvancedIntegerMathBernoulliNumber Method

Computes the given Bernoulli number.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double BernoulliNumber(
	int n
)

Parameters

n  Int32
The index of the Bernoulli number to compute, which must be non-negative.

Return Value

Double
The Bernoulli number Bn.

Remarks

Bn vanishes for all odd n except n=1. For n about 260 or larger, Bn overflows a double.

Exceptions

See Also