Special.Bernoulli B Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Bernoulli | Returns the specified Bernoulli number. |
Bernoulli | Evaluates the Bernoulli polynomial of the specified degree. |
BernoulliB(Int32)
Returns the specified Bernoulli number.
public static double BernoulliB(
int n
)
Parameters
- n Int32
- The index of the Bernoulli number.
Return Value
DoubleThe nth Bernoulli number Bn.
BernoulliB(Int32, Double)
Evaluates the Bernoulli polynomial of the specified degree.
public static double BernoulliB(
int n,
double x
)
Parameters
Return Value
DoubleThe value of the Bernoulli polynomial of degree n at x.
Exceptions
Argument | n is less than zero. |