Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Calculus > Discrete Calculus > Recurrence and Sum Functions >
Mathematica > Mathematics and Algorithms > Discrete Mathematics > Discrete Calculus > Recurrence and Sum Functions >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Integer Functions > Recurrence and Sum Functions >

BernoulliB

BernoulliB[n]
gives the Bernoulli number B_n.
BernoulliB[n, x]
gives the Bernoulli polynomial B_n(x).
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • The Bernoulli polynomials satisfy the generating function relation te^(xt)/(e^t-1)=sum_(n=0)^(infty)B_n(x)(t^n/n!).
  • The Bernoulli numbers are given by B_n=B_n(0).
  • BernoulliB can be evaluated to arbitrary numerical precision.
First ten Bernoulli numbers:
Bernoulli polynomials:
First ten Bernoulli numbers:
In[1]:=
Click for copyable input
Out[1]=
 
Bernoulli polynomials:
In[1]:=
Click for copyable input
Out[1]=
BernoulliB threads element-wise over lists:
Plot Bernoulli polynomials:
TraditionalForm formatting:
Find sums of powers sum_(k=1)^nk^j using BernoulliB:
Compare with direct summation:
Set up an Euler-Maclaurin integration formula:
Use it for f(x)=x^(5/3):
Compare with the exact summation result:
Plot roots of Bernoulli polynomials in the complex plane:
Show the approach of Bernoulli numbers to a limiting form:
The denominator of Bernoulli numbers is given by the von Staudt-Clausen formula:
Compute Bernoulli numbers in modular arithmeric modulo a prime:
Find BernoulliB numbers from their generating function:
Find BernoulliB polynomials from their generating function:
Algorithmically produced results are frequently expressed using Zeta instead of BernoulliB:
When entered in the traditional form, B_n is not automatically interpreted as a Bernoulli number:
Going from Bernoulli numbers to Bernoulli polynomials with umbral calculus:
20000-th Bernoulli number can be computed in under a second:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team