Click or drag to resize
AdvancedIntegerMathBernoulliNumber Method
Computes the given Bernoulli number.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public static double BernoulliNumber(
	int n
)

Parameters

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

Return Value

Type: Double
The Bernoulli number Bn.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionn is negative.
Remarks

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

See Also