compute Bernoulli numbers and polynomials - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Group Theory : Numbers : bernoulli

bernoulli - compute Bernoulli numbers and polynomials

Calling Sequence

bernoulli(n)

bernoulli(n, x)

bernoulli(n, mode)

Parameters

n

-

nonnegint; the index of the required Bernoulli number or polynomial

x

-

algebraic; the expression at which the Bernoulli polynomial is evaluated

mode

-

(optional) equation of the form singleton = value, where value is true or false (default: false)

Description

• 

The bernoulli(n) function computes the nth Bernoulli number . Bernoulli numbers come from the coefficients in the Taylor expansion of x/(e^x - 1).

• 

The bernoulli(n, x) function computes the nth Bernoulli polynomial, in the expression x.

  

The nth Bernoulli number is defined as bernoulli(n, 0).

  

The nth Bernoulli polynomial, Bnx, is defined by the exponential generating function:

  

 

tⅇxtⅇt1=n=0Bnxtnn!

• 

The mode parameter controls whether or not the bernoulli routine computes additional Bernoulli numbers in parallel with the requested one.  For example, if your computer has 4 cores, then the commands bernoulli(1000) and bernoulli(1000, singleton=false) will compute (and store) bernoulli(1002), bernoulli(1004), and bernoulli(1006).  Since in practice nearly all computations which use Bernoulli numbers require many of them, and require them in sequence, this results in considerable efficiency gains.  The commands bernoulli(1000, singleton) and bernoulli(1000, singleton=true) (which are equivalent) will result in only the 1000th Bernoulli number being computed.

The mode option has no effect if your computer has only a single core.

Examples

bernoulli4

130

(1)

bernoulli4,0

130

(2)

bernoulli4,x

130+x42x3+x2

(3)

bernoulli4,12

7240

(4)

bernoulli4,4x

130+256x4128x3+16x2

(5)

bernoulli0,975

1

(6)

See Also

euler, initialfunctions


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam