[6.27] Find Bernoulli Numbers And Polynomials - Texas Instruments TI-89 Tip List

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

abs ( f ( x ))
f ∏∏ ( x )
h =
10
where I have used the absolute value abs() to ensure that the root is real. I also divide the final result
by 10 to ensure that h is small enough that nder1() doesn't terminate too early.
nder1() can terminate in one of two ways: if the error keeps decreasing, nder1() will run until the amat[]
matrix is filled with values. However, if at some step the error increases, nder1() will terminate early.
The variable safe specifies the magnitude of the error increase that causes termination. Refer to the
code listing for details.
From my testing with a few functions, nder1() nearly always terminates by exceeding the safe limit.

[6.27] Find Bernoulli numbers and polynomials

[Note: since this tip was written, Bhuvanesh Bhatt has also written a function to find both Bernoulli
numbers and polynomials. Bhuvanesh' function is smaller and handles complex arguments. You can
get it at his site (see the "More Resources - Web sites" section for the URL), and at ticalc.org. Also, M.
Daveluy has written a Bernoulli number function, which can be found at ti-cas.org.]
Bernoulli numbers are generated from the Benoulli polynomials evaluated at zero. Bernoulli
polynomials are defined by the generating function
te xt
=
n=0
e t −1
Bernoulli polynomials can also be defined recursively by
B 0 ( x ) = 1
d
B n ( x ) = nB n−1 ( x )
dx
1
B n ( x ) dx = 0
0
The first few Bernoulli polynomials are
B 0 ( x ) = 1
B 1 ( x ) = 2x−1
2
B 2 ( x ) = 6x2−6x+1
6
The nth Bernoulli number is denoted as B
function
t
=
n=0
e t −1
n
B n ( x ) t
n!
n m 1
for
n
B n t
n!
3 −3x 2 +x
B 3 ( x ) = 2x
2
4 −60x 3 +30x 2 −1
B 4 ( x ) = 30x
30
5 −15x 4 +10x 3 −x
B 5 ( x ) = 6x
6
. The Bernoulli numbers can be defined by the generating
n
[1]
[2]
[3]
6 - 39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92+

Table of Contents