17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chebyshev polynomials<br />

1<br />

.5<br />

0<br />

−.5<br />

−1<br />

−1<br />

5.8 Chebyshev Approximation 191<br />

−.8 −.6 −.4 −.2 0<br />

x<br />

T4<br />

T5<br />

T0<br />

T6<br />

T1<br />

T2<br />

T3<br />

.2 .4 .6 .8 1<br />

Figure 5.8.1. Chebyshev polynomials T0(x) through T6(x). Note that Tj has j roots in the interval<br />

(−1, 1) and that all the polynomials are bounded between ±1.<br />

The Chebyshev polynomials satisfy a discrete orthogonality relation as well as<br />

the continuous one (5.8.3): If xk (k =1,...,m) are the m zeros of Tm(x) given<br />

by (5.8.4), and if i, j < m, then<br />

m�<br />

Ti(xk)Tj(xk) =<br />

k=1<br />

� 0 i �= j<br />

m/2 i = j �= 0<br />

m i = j =0<br />

(5.8.6)<br />

It is not too difficult to combine equations (5.8.1), (5.8.4), and (5.8.6) to prove<br />

the following theorem: If f(x) is an arbitrary function in the interval [−1, 1], and if<br />

N coefficients cj,j =0,...,N − 1, are defined by<br />

cj = 2<br />

N<br />

= 2<br />

N<br />

N�<br />

f(xk)Tj(xk)<br />

k=1<br />

N�<br />

f<br />

k=1<br />

then the approximation formula<br />

� � 1 π(k −<br />

cos<br />

N<br />

f(x) ≈<br />

� N−1<br />

�<br />

k=0<br />

2 )<br />

�� � 1 πj(k −<br />

cos<br />

�<br />

ckTk(x) − 1<br />

2 c0<br />

N<br />

2 )<br />

�<br />

(5.8.7)<br />

(5.8.8)<br />

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5)<br />

Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by <strong>Numerical</strong> Recipes Software.<br />

Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable<br />

files (including this one) to any server computer, is strictly prohibited. To order <strong>Numerical</strong> Recipes books or CDROMs, visit website<br />

http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!