Special.BernoulliB Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

BernoulliB(Int32) Returns the specified Bernoulli number.
BernoulliB(Int32, Double) Evaluates the Bernoulli polynomial of the specified degree.

BernoulliB(Int32)

Returns the specified Bernoulli number.
C#
public static double BernoulliB(
	int n
)

Parameters

n  Int32
The index of the Bernoulli number.

Return Value

Double
The nth Bernoulli number Bn.

BernoulliB(Int32, Double)

Evaluates the Bernoulli polynomial of the specified degree.
C#
public static double BernoulliB(
	int n,
	double x
)

Parameters

n  Int32
The degree of the polynomial.
x  Double
The value at which to evaluate the polynomial.

Return Value

Double
The value of the Bernoulli polynomial of degree n at x.

Exceptions

ArgumentOutOfRangeException

n is less than zero.

See Also