Construction of rational approximations by means of REDUCE

A. Kryukov, A. Rodionov, G. Litvinov
{"title":"Construction of rational approximations by means of REDUCE","authors":"A. Kryukov, A. Rodionov, G. Litvinov","doi":"10.1145/32439.32445","DOIUrl":null,"url":null,"abstract":"1. In recent years the rational approximations have been widely used to solve physical and computational problems /1,2/. When a real function f(x) is repeatedly calculated on a ≤ × ≤ b, it is reasonable to replace it by a polynomial or rational approximation on [a,b]. For example, if f(x) is a composite combination of elementary and special functions any of which can be calculated by means of the corresponding standard program, the f(x) values are obtainable by these programs. This method, however, involves unjustified losses in the computing time and often provides a too high accuracy inadequate to the problem in question. In this case it is more convenient to use the corresponding approximation.\nThere exist iteration algorithms which ensure the best (in the sense of absolute or relative error) rational approximations based on P.L. Chebyshev theory /2,3/. Unfortunately, these algorithms are cumbersome and do not guarantee the convergence if the choice of the initial approximation is unsuccessful, see ref./2/. The present paper treats simple algorithms (Padé-Chebyshev approximation /1/ and Paszkowski algorithm /4/) providing approximations similar to the best ones with a relatively moderate computer resources required. In this case the calculation of the approximation coefficients reduces to the solution of a system (generally speaking, ill-conditioned) of linear algebraic equations. The errors of the Padé-Chebyshev approximations and the corresponding best approximations are compared in the paper /5/ where one of the methods of computation of the Padé-Chebyshev approximations is described.\n2. The Analytic Computations System Reduce is a rather convenient tool of realization of algorithms of the rational approximation construction. This system saves one the trouble of inventing an effective algorithm of approximated-function computation if this function can be given in an analytic form or if the terms in the Taylor series expansion are known or determined analytically by the differential equation. The possibility of using the rational arithmetic (without round-off errors) is essential because the coefficients of rational approximations are not stable with respect to the perturbations of initial data and to the round-off errors. Specifically, the error is minimized which arises in solving the ill-conditioned systems of linear equations and when converting a power series into a series of the Chebyshev polynomials and vice versa. The ALGOL - like input language and the convenient tools of solving the problems of linear algebra ensure the simplicity and compactness of programs. For example, the program of computation of the Padé-Chebyshev coefficients occupies sixty two cards.\n3. We compute the Padé-Chebyshev approximations by the standard “cross multiplied scheme”/1/. By means of the change of variable x → [(b-a)x+a+b]/2 the approximation on an arbitrary finite range [a,b] is reduced to the approximation on [-1, 1]. We shall, therefore, restrict ourselves to the case when the function f(x) is to be approximated on the [-1, 1] range by the expression of the form R(x) = a<subscrpt>0</subscrpt>+a<subscrpt>1</subscrpt>x+…+a<supscrpt>n</supscrpt>/b<subscrpt>0</subscrpt>+ b<subscrpt>1</subscrpt>x+…+b<subscrpt>m</subscrpt>x<supscrpt>m</supscrpt> (1) where m, n are given non-negative integer numbers, a<subscrpt>0</subscrpt>, a<subscrpt>1</subscrpt>,…, a<subscrpt>n</subscrpt>, b<subscrpt>0</subscrpt>, b<subscrpt>1</subscrpt>,…, b<subscrpt>m</subscrpt> are numerical coefficients to be determined.\nIf the function is specified by a power series ƒ(x)= @@@@ C<subscrpt>k</subscrpt>X<supscrpt>k</supscrpt> (2) the corresponding finite sum (the number of terms is determined by the user on the basis of the accuracy required) is converted, using the well-known economizing procedure, to the polynomial @@@@(x) = @@@@ γ<subscrpt>k</subscrpt> T<subscrpt>k</subscrpt> (3) where T<subscrpt>k</subscrpt> are the k-power Chebyshev polynomials.\nSolving the system of linear equations 1/2 @@@@ β<subscrpt>j</subscrpt> (γ<subscrpt>i</subscrpt>+j γ<subscrpt>li-jl</subscrpt>) = 0, i=n+1,…, n+m 1/2 @@@@ β<subscrpt>j</subscrpt> (γ<subscrpt>i+j</subscrpt> + γ<subscrpt>li-jl</subscrpt>) = α<subscrpt>i</subscrpt>, i=0,1, …, n (4) we determine the coefficients α<subscrpt>i</subscrpt>, β<subscrpt>i</subscrpt> of the rational approximation R(x) = α<subscrpt>0</subscrpt>+α<subscrpt>1</subscrpt>T<subscrpt>1</subscrpt> + … + α<subscrpt>n</subscrpt>T<subscrpt>n</subscrpt>/β<subscrpt>0</subscrpt> + β<subscrpt>1</subscrpt>T<subscrpt>1</subscrpt> + … + β<subscrpt>m</subscrpt> T<subscrpt>m</subscrpt> (5)\nAs usual /1,4/ @@@@ <italic>dj</italic> denotes that the first term in the sum is to be replaced by d<subscrpt>0</subscrpt>/2. The system (4) is homogeneous and the solution is determined to within the non-zero factor; it is quite natural since the fraction will not change if the numerator and denominator are simultaneously multiplied or divided by a non-zero values. Therefore, the system (4) is completed with the normalization condition, for example β <subscrpt>m</subscrpt>= 1. Finally, the standard transformation reduces (5) to the form (1).\nThe absolute error of the approximation (1) is of the form δ(x) = &PHgr;(x) / @@@@ b<subscrpt>j</subscrpt>x<supscrpt>j</supscrpt> (6) where &PHgr;(x) = @@@@ b<subscrpt>j</subscrpt>x<supscrpt>j</supscrpt> ƒ(x) - @@@@ a<subscrpt>j</subscrpt>x<supscrpt>j</supscrpt>\nThe above-described algorithm is equivalent to the following procedure: the numerator &Pgr;(x) in (6) is expanded in a series of the Chebyshev polynomials and the first m+n+1 terms are equated to zero. The Paszkowski algorithm (4) leads to the rational approximation R(x) of the form (1) such that the first m+n+1 terms in the expansions of f(x) and R(x) coincide (it will be noted that this approximation does not always exist). The program of this algorithm is similar to that of Padé-Chebyshev algorithm.\nFor even functions the approximation may be sought for in the form R(x) = a<subscrpt>0</subscrpt> + a<subscrpt>1</subscrpt>x<supscrpt>2</supscrpt> + … + a<subscrpt>n</subscrpt>(x<supscrpt>2</supscrpt>)<supscrpt>n</supscrpt>/b<subscrpt>0</subscrpt> + b<subscrpt>1</subscrpt>x<supscrpt>2</supscrpt> + … + b<subscrpt>m</subscrpt>(x<supscrpt>2</supscrpt>)<supscrpt>m</supscrpt> (7) For this case the algorithms involved permit a convenient modification. If f(x) is an odd function it is reasonable to find an approximation of the form (7) to the even function f(x)/x and then to multiply the result by x such that the approximation be of the form R(x) = x a<subscrpt>0</subscrpt> + a<subscrpt>1</subscrpt>x<supscrpt>2</supscrpt> + … + a<subscrpt>n</subscrpt>(x<supscrpt>2</supscrpt>)<supscrpt>n</supscrpt>/b<subscrpt>0</subscrpt> + b<subscrpt>1</subscrpt>x<supscrpt>2</supscrpt> + … + b<subscrpt>m</subscrpt>(x<supscrpt>2</supscrpt>)<supscrpt>m</supscrpt> (8) A large relative error at x=0 is thereby avoided.\n4. To estimate the quality of the rational approximation R(x) to the function f(x), the error functions δ(x) = ƒ(x)-R(x) and δ(x)=Δ(x)/ƒ(x) are calculated and the error curves (i.e. the plots of these functions) are built. The absolute error of the approximation coincides with the value of Δ = max \\Δ(x)\\ and the relative error, with δ = max\\δ (x)\\. Actually, the error functions are calculated in the finite number of the check points that are uniformly distributed over the range where the function is approximated.\nTo find it out to what extent the approximation R(x) to f(x) differs from the best (in the sense of the absolute and relative error) approximation to f(x) of the same form, one can use the generalized de la Valléé-Poussin theorem /3/. Let us, for example, estimate the similarity of the approximation (1) to the approximation of the same form with the best absolute error. For simplicity, we assume that for the best approximation a<subscrpt>n</subscrpt>≠0, b<subscrpt>m</subscrpt>≠0 (this condition is usually always fulfilled). Then if a given approximation R(x) is close enough to the best one, the function Δ (x) takes on non- zero values λ<subscrpt>1</subscrpt>,-λ<subscrpt>2</subscrpt>,…, (-1)<supscrpt>n+m</supscrpt>λ<subscrpt>n+m+2</subscrpt> with alternating signs at successive points x<subscrpt>1</subscrpt> < x<subscrpt>2</subscrpt> < … < x<subscrpt>n+m+2</subscrpt> in the x range by virtue of the generalized Chebyshev theorem /3/. Assume that λ = min {|λ<subscrpt>1</subscrpt>|,|λ<subscrpt>2</subscrpt>, …, |λ<subscrpt>m+n+2</subscrpt>|} Then, according to the generalized de la Valléé-Poussin theorem /3/, the following inequality is valid: λ ≤ Δ<subscrpt>min</subscrpt> ≤ Δ (9) where Δ <subscrpt>min</subscrpt> is the best absolute error of the approximations. It is clear that Δ coincides with the largest (in the absolute value) extremum of Δ(x) and the least (in the absolute value) extremum of this function (up to a sign) can be used λ.\nFor example, for the Padé-Chebyshev approximation (7) to the function cos(π/4 x) on [-1,1] for m=n=2 the absolute error Δ = =0.68 5 .10<supscrpt>-10</supscrpt> and λ = 0.663 .10<supscrpt>-10</supscrpt>) (2400 check points and the condition of the de la Valléé- Poussin theorem is fulfilled). It is clear that this approximation is rather close to the best one.\nThe errors of the Padé-Chebyshev approximants and the approximants obtained with the help of the Paszkowski algorithm are usually of the same order of magnitude. Consider, as an example, the approximations (1) to the function e<supscrpt>x</supscrpt> on the range [-1,1] for m=n=3. In this case the exponent is replaced with the truncated Taylor series (2) up to x<supscrpt>10</supscrpt>/10! inclusive. For the Padé-Chebyshev approximation Δ = 0.33 .10<supscrpt>-6</supscrpt>, δ = 0.20 . 10<supscrpt>-6</supscrpt>, and Paszkowski algorithm gives Δ = 0.25 .10<supscrpt>-6</supscrpt>, δ = 0.26.10<supscrpt>-6</supscrpt>.\nThe above-described algorithms lead to much lower maximum errors as compared to ","PeriodicalId":314618,"journal":{"name":"Symposium on Symbolic and Algebraic Manipulation","volume":"13 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1986-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Symposium on Symbolic and Algebraic Manipulation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/32439.32445","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

1. In recent years the rational approximations have been widely used to solve physical and computational problems /1,2/. When a real function f(x) is repeatedly calculated on a ≤ × ≤ b, it is reasonable to replace it by a polynomial or rational approximation on [a,b]. For example, if f(x) is a composite combination of elementary and special functions any of which can be calculated by means of the corresponding standard program, the f(x) values are obtainable by these programs. This method, however, involves unjustified losses in the computing time and often provides a too high accuracy inadequate to the problem in question. In this case it is more convenient to use the corresponding approximation. There exist iteration algorithms which ensure the best (in the sense of absolute or relative error) rational approximations based on P.L. Chebyshev theory /2,3/. Unfortunately, these algorithms are cumbersome and do not guarantee the convergence if the choice of the initial approximation is unsuccessful, see ref./2/. The present paper treats simple algorithms (Padé-Chebyshev approximation /1/ and Paszkowski algorithm /4/) providing approximations similar to the best ones with a relatively moderate computer resources required. In this case the calculation of the approximation coefficients reduces to the solution of a system (generally speaking, ill-conditioned) of linear algebraic equations. The errors of the Padé-Chebyshev approximations and the corresponding best approximations are compared in the paper /5/ where one of the methods of computation of the Padé-Chebyshev approximations is described. 2. The Analytic Computations System Reduce is a rather convenient tool of realization of algorithms of the rational approximation construction. This system saves one the trouble of inventing an effective algorithm of approximated-function computation if this function can be given in an analytic form or if the terms in the Taylor series expansion are known or determined analytically by the differential equation. The possibility of using the rational arithmetic (without round-off errors) is essential because the coefficients of rational approximations are not stable with respect to the perturbations of initial data and to the round-off errors. Specifically, the error is minimized which arises in solving the ill-conditioned systems of linear equations and when converting a power series into a series of the Chebyshev polynomials and vice versa. The ALGOL - like input language and the convenient tools of solving the problems of linear algebra ensure the simplicity and compactness of programs. For example, the program of computation of the Padé-Chebyshev coefficients occupies sixty two cards. 3. We compute the Padé-Chebyshev approximations by the standard “cross multiplied scheme”/1/. By means of the change of variable x → [(b-a)x+a+b]/2 the approximation on an arbitrary finite range [a,b] is reduced to the approximation on [-1, 1]. We shall, therefore, restrict ourselves to the case when the function f(x) is to be approximated on the [-1, 1] range by the expression of the form R(x) = a0+a1x+…+an/b0+ b1x+…+bmxm (1) where m, n are given non-negative integer numbers, a0, a1,…, an, b0, b1,…, bm are numerical coefficients to be determined. If the function is specified by a power series ƒ(x)= @@@@ CkXk (2) the corresponding finite sum (the number of terms is determined by the user on the basis of the accuracy required) is converted, using the well-known economizing procedure, to the polynomial @@@@(x) = @@@@ γk Tk (3) where Tk are the k-power Chebyshev polynomials. Solving the system of linear equations 1/2 @@@@ βji+j γli-jl) = 0, i=n+1,…, n+m 1/2 @@@@ βji+j + γli-jl) = αi, i=0,1, …, n (4) we determine the coefficients αi, βi of the rational approximation R(x) = α01T1 + … + αnTn0 + β1T1 + … + βm Tm (5) As usual /1,4/ @@@@ dj denotes that the first term in the sum is to be replaced by d0/2. The system (4) is homogeneous and the solution is determined to within the non-zero factor; it is quite natural since the fraction will not change if the numerator and denominator are simultaneously multiplied or divided by a non-zero values. Therefore, the system (4) is completed with the normalization condition, for example β m= 1. Finally, the standard transformation reduces (5) to the form (1). The absolute error of the approximation (1) is of the form δ(x) = &PHgr;(x) / @@@@ bjxj (6) where &PHgr;(x) = @@@@ bjxj ƒ(x) - @@@@ ajxj The above-described algorithm is equivalent to the following procedure: the numerator &Pgr;(x) in (6) is expanded in a series of the Chebyshev polynomials and the first m+n+1 terms are equated to zero. The Paszkowski algorithm (4) leads to the rational approximation R(x) of the form (1) such that the first m+n+1 terms in the expansions of f(x) and R(x) coincide (it will be noted that this approximation does not always exist). The program of this algorithm is similar to that of Padé-Chebyshev algorithm. For even functions the approximation may be sought for in the form R(x) = a0 + a1x2 + … + an(x2)n/b0 + b1x2 + … + bm(x2)m (7) For this case the algorithms involved permit a convenient modification. If f(x) is an odd function it is reasonable to find an approximation of the form (7) to the even function f(x)/x and then to multiply the result by x such that the approximation be of the form R(x) = x a0 + a1x2 + … + an(x2)n/b0 + b1x2 + … + bm(x2)m (8) A large relative error at x=0 is thereby avoided. 4. To estimate the quality of the rational approximation R(x) to the function f(x), the error functions δ(x) = ƒ(x)-R(x) and δ(x)=Δ(x)/ƒ(x) are calculated and the error curves (i.e. the plots of these functions) are built. The absolute error of the approximation coincides with the value of Δ = max \Δ(x)\ and the relative error, with δ = max\δ (x)\. Actually, the error functions are calculated in the finite number of the check points that are uniformly distributed over the range where the function is approximated. To find it out to what extent the approximation R(x) to f(x) differs from the best (in the sense of the absolute and relative error) approximation to f(x) of the same form, one can use the generalized de la Valléé-Poussin theorem /3/. Let us, for example, estimate the similarity of the approximation (1) to the approximation of the same form with the best absolute error. For simplicity, we assume that for the best approximation an≠0, bm≠0 (this condition is usually always fulfilled). Then if a given approximation R(x) is close enough to the best one, the function Δ (x) takes on non- zero values λ1,-λ2,…, (-1)n+mλn+m+2 with alternating signs at successive points x1 < x2 < … < xn+m+2 in the x range by virtue of the generalized Chebyshev theorem /3/. Assume that λ = min {|λ1|,|λ2, …, |λm+n+2|} Then, according to the generalized de la Valléé-Poussin theorem /3/, the following inequality is valid: λ ≤ Δmin ≤ Δ (9) where Δ min is the best absolute error of the approximations. It is clear that Δ coincides with the largest (in the absolute value) extremum of Δ(x) and the least (in the absolute value) extremum of this function (up to a sign) can be used λ. For example, for the Padé-Chebyshev approximation (7) to the function cos(π/4 x) on [-1,1] for m=n=2 the absolute error Δ = =0.68 5 .10-10 and λ = 0.663 .10-10) (2400 check points and the condition of the de la Valléé- Poussin theorem is fulfilled). It is clear that this approximation is rather close to the best one. The errors of the Padé-Chebyshev approximants and the approximants obtained with the help of the Paszkowski algorithm are usually of the same order of magnitude. Consider, as an example, the approximations (1) to the function ex on the range [-1,1] for m=n=3. In this case the exponent is replaced with the truncated Taylor series (2) up to x10/10! inclusive. For the Padé-Chebyshev approximation Δ = 0.33 .10-6, δ = 0.20 . 10-6, and Paszkowski algorithm gives Δ = 0.25 .10-6, δ = 0.26.10-6. The above-described algorithms lead to much lower maximum errors as compared to
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
用REDUCE方法构造有理逼近
1. 近年来,有理近似被广泛应用于解决物理和计算问题。当一个实函数f(x)在a≤x≤b上重复计算时,在[a,b]上用多项式或有理逼近代替它是合理的。例如,如果f(x)是由初等函数和特殊函数组成的复合函数,其中任何一个函数都可以通过相应的标准程序来计算,则f(x)的值可以通过这些标准程序得到。然而,这种方法在计算时间上造成了不合理的损失,并且通常提供的精度过高,不足以解决问题。在这种情况下,使用相应的近似更为方便。基于P.L. Chebyshev理论,存在保证最佳(在绝对或相对误差意义上)有理逼近的迭代算法[2,3]。不幸的是,这些算法是繁琐的,并不能保证收敛,如果初始逼近的选择是不成功的,见文献/2/。本文处理简单的算法(pad<s:1> - chebyshev近似/1/和Paszkowski算法/4/),提供与最佳近似相似的近似,所需的计算机资源相对适中。在这种情况下,近似系数的计算简化为线性代数方程组(一般来说是病态的)的解。本文比较了pad<s:1> - chebyshev近似和相应的最佳近似的误差,并介绍了pad<s:1> - chebyshev近似的一种计算方法。解析计算系统Reduce是实现有理逼近构造算法的一个相当方便的工具。如果函数可以以解析形式给出,或者泰勒级数展开式中的项是已知的,或者由微分方程解析确定,那么这个系统就省去了发明一种有效的近似函数计算算法的麻烦。使用有理数算术(没有舍入误差)的可能性是必不可少的,因为有理数近似的系数相对于初始数据的扰动和舍入误差是不稳定的。具体地说,在求解线性方程组的病态系统和将幂级数转换为切比雪夫多项式的级数时产生的误差被最小化,反之亦然。类似ALGOL的输入语言和方便的求解线性代数问题的工具保证了程序的简洁性和紧凑性。例如,计算pad<s:1> - chebyshev系数的程序占用了62张卡片。我们用标准的“交叉相乘格式”计算pad<s:1> - chebyshev近似。通过变量x→[(b-a)x+a+b]/2的变化,将任意有限范围[a,b]上的逼近化约为[- 1,1]上的逼近。因此,我们将局限于函数f(x)在[- 1,1]范围内近似为R(x) = a0+a1x+…+an/b0+ b1x+…+bmxm(1)的情况,其中m, n是给定的非负整数,a0, a1,…,an, b0, b1,…,bm是待确定的数值系数。如果函数由幂级数f (x)= @@@@ CkXk(2)指定,则使用众所周知的节约程序将相应的有限和(项数由用户根据所需的精度确定)转换为多项式@@@@(x) = @@@@ γk Tk(3),其中Tk是k次切比雪夫多项式。求解线性方程组1/2 @@@@ βj (γi+j γli-jl) =0, i=n+1,…,n+m 1/2 @@@@ βj (γi+j + γli-jl) = αi, i=0,1,…,n(4)我们确定系数αi, βi的有理近似R(x) = α0+α1T1 +…+ αnTn/β0 + β1T1 +…+ βm Tm(5)与往常一样/1,4/ @@@@ dj表示求和中的第一项用d0/2代替。系统(4)是齐次的,解被确定在非零因子内;这是很自然的,因为如果分子和分母同时乘以或除以一个非零值,分数不会改变。因此,系统(4)完成了归一化条件,例如β m= 1。最后,标准变换将式(5)简化为式(1)。近似式(1)的绝对误差形式为δ(x) = &PHgr;(x) / @@@@ bjxj(6)其中&PHgr;(x) = @@@@ bjxj f (x) - @@@@ ajxj上述算法等价于以下过程:将式(6)中的分子&Pgr;(x)展开为一系列切比雪夫多项式,前m+n+1项等于零。Paszkowski算法(4)导致形式为(1)的有理近似R(x),使得f(x)和R(x)展开中的前m+n+1项重合(需要注意的是,这种近似并不总是存在)。该算法的程序与pad<s:1> - chebyshev算法类似。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
A semantic matcher for computer algebra Construction of rational approximations by means of REDUCE Divide-and-conquer in computational group theory There is no “Uspensky's method.” Summation of binomial coefficients using hypergeometric functions
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1