AdvancedIntegerMathBernoulliNumber Method |
Computes the given Bernoulli number.
Namespace:
Meta.Numerics.Functions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static double BernoulliNumber(
int n
)
Public Shared Function BernoulliNumber (
n As Integer
) As Double
public:
static double BernoulliNumber(
int n
)
static member BernoulliNumber :
n : int -> float
Parameters
- n
- Type: SystemInt32
The index of the Bernoulli number to compute, which must be non-negative.
Return Value
Type:
DoubleThe Bernoulli number B
n.
Exceptions Remarks Bn vanishes for all odd n except n=1. For n about 260 or larger, Bn overflows a double.
See Also