计算机专外文翻译.docVIP

  • 4
  • 0
  • 约2.39万字
  • 约 45页
  • 2018-06-24 发布于浙江
  • 举报
计算机专外文翻译

PADE APPROXIMATION BY RATIONAL FUNCTION 129 We can apply this formula to get the polynomial approximation directly for a given function f (x), without having to resort to the Lagrange or Newton polynomial. Given a function, the degree of the approximate polynomial, and the left/right boundary points of the interval, the above MATLAB routine “cheby()” uses this formula to make the Chebyshev polynomial approximation. The following example illustrates that this formula gives the same approximate polynomial function as could be obtained by applying the Newton polynomial with the Chebyshev nodes. Example 3.1. Approximation by Chebyshev Polynomial. Consider the problem of finding the second-degree (N = 2) polynomial to approximate the function . We make the following program “do_cheby.m”, which uses the MATLAB routine “cheby()” for this job and uses Lagrange/Newton polynomial with the Chebyshev nodes to do the same job. Readers can run this program to check if the results are the same. 3.4 PADE APPROXIMATION BY RATIONAL FUNCTION Pade approximation tries to approximate a function f (x) around a point xo by a rational function (3.4.1) where are known. How do we find such a rational function? We write the Taylor series expansion of f (x) up to degree M + N at x = xo as 130 INTERPOLATION AND CURVE FITTING Assuming =0for simplicity, we get the coefficients of such that (3.4.3) by solving the following equations: (3.4.4a)(3.4.4b) Here, we must first solve Eq. (3.4.4b) for and then substitute di’s into Eq. (3.4.4a) to obtain The MATLAB routine “padeap()” implements this scheme to find the coefficient vectors of the numerator/denominator polynomial of the Pade approximation for a given function f (x). Note the following things: ? The derivatives up to order (M + N) are computed numerically by using the routine “difapx()”, that will be introduced in Section 5.3. ? In order to compute the values of the Pade approximate function, we substitute for x in which has been obtaine

文档评论(0)

1亿VIP精品文档

相关文档