ベキ級数で表現される関数に対して,$n$ 桁の精度でその値を計算する方法を提案する.この方法は,分割統治法に基づくので分割有理数化法(Divide and Rationalize Method,DRM法)と名付けるが,従来の計算量を改善するものである.$n$ 桁の乗算の演算量を $M(n)$ とするとき,入力値が $O(1)$ 桁の有理数の場合,DRM法により計算量を $O(n^2)$ から $O(M(n)?cdot (?log_2n)^2)$ 以下にできる.また,入力値が $n$ 桁の精度で関数に加法定理が適用できる場合には,計算量を $O(M(n) ?cdot n)$ から $O(M(n)?cdot (?log_2n)^3)$ 以下に削減する.このDRM法は2つの方法から構成される.第1の方法は級数の和の計算にトーナメント方式を適用し2項ずつ通分して有理数化し,除算で $n$ 桁精度の実数にする方式である.第2の方法は $n$ 桁精度の入力値 $X$ を分母の桁数が上位桁から $?alpha 2?alpha 4?alpha ?cdots 2^{p-1}?alpha$ 桁ずつの有理数に分解し,各分割ごとに関数値を計算し,それらから加法定理を用いて $X$ での関数値を計算する方式である.本方法は関数の多数桁計算で著名なBrentのアルゴリズムより適用範囲が広く,連分数の計算や基底変換にも適用可能で,アルゴリズムはより単純で分かりやすい.また,並列処理に向いており,計算桁数を増加するとき計算済みの有理数が再利用可能である.We propose a new divide and conquer method for $n$-digit evaluation offunctions expressed by power series.The method which we call Divide andRationalize Method (DRM) improves the conventional computing complexity.In the case of the input precision with an $O(1)$-digit rational number,the method reduces the complexity of $n$-digit function computation from $O(n^2)$ to $O(M(n)cdot (log_2n)^2)$ or below.In the case of the input precisionwith an $n$-digit real number and possible to use the additiontheorem, the method reduces the $n$-digit function computation from $O(M(n) cdot n)$ to $O(M(n) cdot (log_2n)^3)$ or below, where $M(n)$ is the number of computation operations required to multiply $n$-digit precision numbers.The DRM consists of two methods.The first method is a method which sums up from each rational numbersin the series to $n$-digit rational numbers with tournamentmethod.The second method is a method which computes a value of the functionfor each digit corresponding to an input value of rational numberwith $lpha, 2lpha, 4lpha, cdots, 2^{p-1}lpha$ digitdenominator from the higher digit and sums the value of the functionaccording to the addition theorem.The coverage of the proposed method is wider in the multiple-precisionfunction computation than Brentu27s algorithm and it can be applicableto radix conversion and computation of continued fractions.Also, it is suitable for the parallel processing and possible to reuseintermediate rational results for more higher precision computation.
展开▼
机译:我们提出一种方法来计算幂级数表示的函数的$ n $位数的精度值。由于该方法基于分治法,因此被称为分而合理化方法(DRM方法),但它提高了常规计算的复杂度。假设$ n $位数乘法的运算量为$ M(n)$,如果输入值是$ O(1)$位数的有理数,则通过DRM方法从$ O(n ^ 2)$计算出计算量。它可以在$ O(M(n)?cdot(?log_2n)^ 2)$下。另外,如果输入值可以以$ n $位的精度应用于函数,并且可以应用加法则,则可以将计算复杂度从$ O(M(n)?cdot n)$更改为$ O(M(n)?cdot(? log_2n)^ 3)$或更少。此DRM方法由两种方法组成。第一种方法是将锦标赛方法应用于序列总和的计算,将每两个项划分为一个有理数,然后将其划分为具有$ n $位数精度的实数。第二种方法是输入一个精度为$ n $到$ X $的输入值,分母是一个有理数,每个数字从最高有效位到$?alpha 2?alpha 4?alpha?cdots 2 ^ {p-1}?alpha $位。这是一种使用每个定理的加法定理来计算$ X $处函数值的方法,并为每个除法计算函数值。该方法比著名的布伦特算法进行函数的多位数计算的应用范围更广,并且可以应用于连续分数计算和基数转换,该算法更简单易懂。而且,它适合于并行处理,并且当增加计算位数时,可以重新使用已经计算出的有理数。我们提出了一种新的分治法,用于幂级数表示的函数的$ n $位数字求值。我们称之为除法和合理化方法(DRM)的方法提高了传统的计算复杂度。在输入精度为$ O( 1)$位有理数,该方法将$ n $位函数的计算复杂度从$ O(n ^ 2)$降低到$ O(M(n) cdot( log_2n)^ 2)$或以下在输入精度为$ n $位数实数并且可以使用加法定理的情况下,该方法将$ n $位数函数的计算从$ O(M(n(n) cdot n)$减少为$ O (M(n) cdot( log_2n)^ 3)$或以下,其中$ M(n)$是将$ n $位精度数字相乘所需的计算操作数.DRM包含两种方法。第一种方法是使用锦标赛方法将系列中的每个有理数加到$ n $位有理数的方法。第二种方法是为对应于n位数的每个数位计算函数值的方法。用较高位的$ alpha,2 alpha,4 alpha, cdots,2 ^ {p-1} alpha $数字分母输入有理数,并根据加法定理求和该函数的值。与Brent u27s算法相比,该方法在多精度函数计算中的应用范围更广,可以应用于基数转换和连续分数的计算。它也适用于并行处理,并且可以重用中间有理结果以实现更高的精度计算。
展开▼