Skip to main content
QUICK REVIEW

[Paper Review] Fast and rigorous arbitrary-precision computation of Gauss-Legendre quadrature nodes and weights

Fredrik Johansson, Marc Mezzarobba|arXiv (Cornell University)|Feb 9, 2018
Numerical Methods and AlgorithmsComputer Science14 references16 citations
TL;DR

This paper presents a fast, rigorous, and arbitrary-precision algorithm for computing Gauss-Legendre quadrature nodes and weights using hypergeometric series expansions, rectangular splitting, and interval Newton iteration. It achieves speedups of orders of magnitude over prior methods, enabling practical computation of high-precision quadrature rules (e.g., 1,000–10,000 bits) in seconds to minutes on a single core.

ABSTRACT

We describe a strategy for rigorous arbitrary-precision evaluation of Legendre polynomials on the unit interval and its application in the generation of Gauss-Legendre quadrature rules. Our focus is on making the evaluation practical for a wide range of realistic parameters, corresponding to the requirements of numerical integration to an accuracy of about 100 to 100 000 bits. Our algorithm combines the summation by rectangular splitting of several types of expansions in terms of hypergeometric series with a fixed-point implementation of Bonnet's three-term recurrence relation. We then compute rigorous enclosures of the Gauss-Legendre nodes and weights using the interval Newton method. We provide rigorous error bounds for all steps of the algorithm. The approach is validated by an implementation in the Arb library, which achieves order-of-magnitude speedups over previous code for computing Gauss-Legendre rules with simultaneous high degree and precision.

Motivation & Objective

  • To enable the practical computation of Gauss-Legendre quadrature rules with arbitrary precision, specifically for applications requiring 100 to 100,000 bits of accuracy.
  • To overcome the computational bottleneck of existing methods that suffer from quadratic or higher time complexity in the degree $ n $ of the Legendre polynomial.
  • To provide rigorous error bounds for all stages of the computation, including polynomial evaluation, root finding, and weight calculation.
  • To develop a method that is both efficient and provably correct, suitable for use in high-precision numerical integration in computer algebra and experimental mathematics.

Proposed method

  • The algorithm uses rectangular splitting to sum hypergeometric series expansions of Legendre polynomials on the unit interval, enabling efficient and accurate evaluation at arbitrary precision.
  • It combines fixed-point arithmetic with Bonnet’s three-term recurrence relation to compute Legendre polynomials and their derivatives with rigorous error control.
  • Roots of the Legendre polynomial are computed using the interval Newton method, which provides rigorous enclosures of the nodes with guaranteed convergence.
  • Weights are computed from the nodes using the standard formula $ w_i = rac{2}{(1 - x_i^2)(P_n'(x_i))^2} $, with rigorous error bounds propagated through all steps.
  • The method is implemented in the Arb library, leveraging its arbitrary-precision interval arithmetic and fast arithmetic primitives.
  • The approach avoids the $ ilde{O}(n^2) $ complexity of classical methods by using asymptotic expansions and optimized summation techniques, achieving near-optimal bit complexity.

Experimental results

Research questions

  • RQ1Can Gauss-Legendre quadrature nodes and weights be computed efficiently and rigorously at arbitrary precision levels (e.g., 1000–10,000 bits) without relying on heuristic error estimates?
  • RQ2Is it possible to achieve sub-quadratic time complexity in $ n $ for high-precision Legendre polynomial evaluation and root-finding using asymptotic expansions and fast summation?
  • RQ3Can rigorous error bounds be maintained throughout the entire computation pipeline, from polynomial evaluation to root and weight computation, for use in verified numerical integration?
  • RQ4How does the performance of this method compare to alternative quadrature schemes (e.g., Clenshaw-Curtis, double exponential) in terms of setup cost and per-evaluation efficiency at high precision?

Key findings

  • The algorithm computes 1,000-digit precision Gauss-Legendre quadrature rules in 1–2 seconds and 10,000-digit rules in 10–20 minutes on a single core, representing a significant speedup over prior methods.
  • The method achieves quasi-optimal bit complexity, matching that of Clenshaw-Curtis and double exponential quadrature up to logarithmic factors, despite the non-nested nature of Gauss-Legendre nodes.
  • The use of rectangular splitting and fixed-point recurrence enables fast and rigorous evaluation of Legendre polynomials and their derivatives at arbitrary precision.
  • The interval Newton method successfully computes rigorous enclosures of the roots with guaranteed convergence, even for large $ n $, and the error bounds are rigorously propagated through all stages.
  • The algorithm is highly parallelizable since all roots are computed independently, making it suitable for multi-core or distributed execution.
  • The implementation in the Arb library demonstrates that high-precision Gauss-Legendre quadrature is no longer prohibitively expensive for practical use in applications requiring thousands of digits of accuracy.

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.