Skip to main content
QUICK REVIEW

[Paper Review] Multiple-precision zero-finding methods and the complexity of elementary function evaluation

Richard P. Brent|arXiv (Cornell University)|Apr 20, 2010
Numerical Methods and AlgorithmsComputer Science4 citations
TL;DR

This paper presents fast multiple-precision zero-finding algorithms for evaluating elementary functions like log(x), exp(x), and sin(x) with high accuracy. Using Newton-type iterations and variable-precision arithmetic, it achieves asymptotic complexity of approximately 13M(n)log₂n operations for n-bit precision, where M(n) is the time to multiply n-bit numbers, significantly improving upon classical methods.

ABSTRACT

We consider methods for finding high-precision approximations to simple zeros of smooth functions. As an application, we give fast methods for evaluating the elementary functions log(x), exp(x), sin(x) etc. to high precision. For example, if x is a positive floating-point number with an n-bit fraction, then (under rather weak assumptions) an n-bit approximation to log(x) or exp(x) may be computed in time asymptotically equal to 13M(n)lg(n), where M(n) is the time required to multiply floating-point numbers with n-bit fractions. Similar results are given for the other elementary functions. Some analogies with operations on formal power series (over a field of characteristic zero) are discussed. In particular, it is possible to compute the first n terms in log(1 + a_1.x + ...) or exp(a_1.x + ...) in time O(M(n)), where M(n) is the time required to multiply two polynomials of degree n - 1. It follows that the first n terms in a q-th power (1 + a_1.x + ...)^q can be computed in time O(M(n)), independent of q. One of the results of this paper is the "Gauss-Legendre" or "Brent-Salamin" algorithm for computing pi. This is the first quadratically convergent algorithm for pi. It was also published in Brent [J. ACM 23 (1976), 242-251], and independently by Salamin [Math. Comp. 30 (1976), 565-570].

Motivation & Objective

  • To develop efficient algorithms for computing elementary functions to arbitrary high precision.
  • To analyze the computational complexity of evaluating functions like log(x), exp(x), and sin(x) in multiple-precision arithmetic.
  • To establish asymptotic time bounds for these evaluations based on the cost of high-precision multiplication.
  • To draw analogies between function evaluation and operations on formal power series.

Proposed method

  • Uses Newton's method for solving f(x) = 0 with variable-precision arithmetic, where precision increases during iterations.
  • Applies iterative refinement techniques such as Newton-Raphson and higher-order methods to achieve quadratic or cubic convergence.
  • Employs precision scaling in iterations: lower-precision operations are used in early steps, with full precision only at the final stages.
  • Leverages the asymptotic properties of M(n), the time to multiply n-bit numbers, to derive total operation counts.
  • Reduces function evaluation to series operations (e.g., log(P(x)), exp(P(x))) via power series composition and inversion.
  • Uses recurrence relations and fast multiplication to compute power series coefficients efficiently, minimizing total operation count.

Experimental results

Research questions

  • RQ1What is the minimal computational complexity for evaluating elementary functions like log(x) and exp(x) to n-bit precision?
  • RQ2How can Newton-type methods be adapted to variable-precision arithmetic to minimize total operation count?
  • RQ3What is the relationship between function evaluation and operations on formal power series?
  • RQ4Can higher-order convergence methods reduce the number of operations compared to standard Newton-Raphson?
  • RQ5How do assumptions on M(n), such as M(n) = O(n log n log log n), affect the asymptotic complexity of function evaluation?

Key findings

  • An n-bit approximation to log(x) or exp(x) can be computed in time asymptotically equal to 13M(n)log₂n as n → ∞.
  • Division and reciprocal evaluation require approximately 4M(n) and 3M(n) operations respectively, asymptotically.
  • Inverse square root evaluation takes about 4.5M(n) operations, and square root evaluation about 5.5M(n) operations.
  • Exponential of a power series P(x) can be computed in ∼9M(n) operations using Newton's method, reducible to ∼7.3M(n) with a fourth-order method.
  • The m-th power of a power series P(x) can be computed in O(M(n)) operations via the identity P^m = exp(m log(P)), significantly faster than repeated squaring for large m.
  • The total cost of evaluating f(P(x)) for functions with algebraic derivatives (e.g., arctan) is bounded by a constant multiple of M(n), assuming f can be composed efficiently.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.