bernoulli takes as argument an integer n.
bernoulli returns the n-th Bernoulli number B(n).
The Bernoulli numbers are defined by :
| = |
|
| tn |
Bernoulli polynomials Bk are defined by :
B0=1, Bk′(x)=kBk−1(x), | ∫ |
| Bk(x)dx=0 |
and the relation B(n)=Bn(0) holds.
Input :
Output :