正在加载图片...
3.2 Rational Function Interpolation and Extrapolation 111 3.2 Rational Function Interpolation and Extrapolation Some functions are not well approximated by polynomials,but are well approximated by rational functions,that is quotients of polynomials.We de- note by Ri(i+1)...(i+m)a rational function passing through the m+1 points (i,i)...(i+m,yi+m).More explicitly,suppose P(x)_P0+p1E+…+Pu 三 R4(+1).-(+m)=Q(西=q0+g1x+…+9 (3.2.1) Since there are u+v+1 unknown p's and g's(go being arbitrary),we must have 豆君蜀州 ICAL m+1=4+y+1 (3.2.2) In specifying a rational function interpolating function,you must give the desired RECIPES order of both the numerator and the denominator. Rational functions are sometimes superior to polynomials,roughly speaking, 9 because oftheir ability to model functions with poles,that is,zeros ofthe denominator of equation(3.2.1).These poles might occur for real values of x,if the function to be interpolated itself has poles.More often.the function f()is finite for all finite real z,but has an analytic continuation with poles in the complex z-plane. 9 Such poles can themselves ruin a polynomial approximation,even one restricted to 、经是g∽ real values of z,just as they can ruin the convergence of an infinite power series in z.If you draw a circle in the complex plane around your m tabulated points, then you should not expect polynomial interpolation to be good unless the nearest 61 pole is rather far outside the circle.A rational function approximation,by contrast, will stay"good"as long as it has enough powers ofz in its denominator to account for (cancel)any nearby poles. For the interpolation problem,a rational function is constructed so as to go through a chosen set of tabulated functional values.However,we should also mention in passing that rational function approximations can be used in analytic SPod毫 Numerica 10621 work.One sometimes constructs a rational function approximation by the criterion that the rational function of equation(3.2.1)itself have a power series expansion that agrees with the first m+1 terms of the power series expansion of the desired function f(x).This is called Pade approximation,and is discussed in $5.12. Bulirsch and Stoer found an algorithm of the Neville type which performs North rational function extrapolation on tabulated data.A tableau like that of equation (3.1.2)is constructed column by column,leading to a result and an error estimate. The Bulirsch-Stoer algorithm produces the so-called diagonal rational function,with the degrees of numerator and denominator equal (if m is even)or with the degree of the denominator larger by one (if m is odd,cf.equation 3.2.2 above).For the derivation of the algorithm,refer to [1].The algorithm is summarized by a recurrence3.2 Rational Function Interpolation and Extrapolation 111 Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copyin Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) g of machine￾readable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America). 3.2 Rational Function Interpolation and Extrapolation Some functions are not well approximated by polynomials, but are well approximated by rational functions, that is quotients of polynomials. We de￾note by Ri(i+1)...(i+m) a rational function passing through the m + 1 points (xi, yi)...(xi+m, yi+m). More explicitly, suppose Ri(i+1)...(i+m) = Pµ(x) Qν(x) = p0 + p1x + ··· + pµxµ q0 + q1x + ··· + qν xν (3.2.1) Since there are µ + ν + 1 unknown p’s and q’s (q0 being arbitrary), we must have m +1= µ + ν +1 (3.2.2) In specifying a rational function interpolating function, you must give the desired order of both the numerator and the denominator. Rational functions are sometimes superior to polynomials, roughly speaking, because of their ability to model functions with poles, that is, zeros of the denominator of equation (3.2.1). These poles might occur for real values of x, if the function to be interpolated itself has poles. More often, the function f(x) is finite for all finite real x, but has an analytic continuation with poles in the complex x-plane. Such poles can themselves ruin a polynomial approximation, even one restricted to real values of x, just as they can ruin the convergence of an infinite power series in x. If you draw a circle in the complex plane around your m tabulated points, then you should not expect polynomial interpolation to be good unless the nearest pole is rather far outside the circle. A rational function approximation, by contrast, will stay “good” as long as it has enough powers of x in its denominator to account for (cancel) any nearby poles. For the interpolation problem, a rational function is constructed so as to go through a chosen set of tabulated functional values. However, we should also mention in passing that rational function approximations can be used in analytic work. One sometimes constructs a rational function approximation by the criterion that the rational function of equation (3.2.1) itself have a power series expansion that agrees with the first m + 1 terms of the power series expansion of the desired function f(x). This is called P ade´ approximation, and is discussed in §5.12. Bulirsch and Stoer found an algorithm of the Neville type which performs rational function extrapolation on tabulated data. A tableau like that of equation (3.1.2) is constructed column by column, leading to a result and an error estimate. The Bulirsch-Stoer algorithm produces the so-called diagonal rational function, with the degrees of numerator and denominator equal (if m is even) or with the degree of the denominator larger by one (if m is odd, cf. equation 3.2.2 above). For the derivation of the algorithm, refer to [1]. The algorithm is summarized by a recurrence
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有