Skip to main content
QUICK REVIEW

[Paper Review] NumGfun: a Package for Numerical and Analytic Computation with D-finite Functions

Marc Mezzarobba|arXiv (Cornell University)|Feb 16, 2010
Numerical Methods and AlgorithmsComputer Science5 citations
TL;DR

This paper presents NumGfun, a Maple package that implements fast, certified numerical and analytic computation with D-finite functions—solutions of linear differential equations with polynomial coefficients—using advanced algorithms like the Chudnovsky & Chudnovsky bit burst method. It enables high-precision evaluation of combinatorial sequences and special functions, including near singularities, with soft-linear time complexity and rigorous error bounds.

ABSTRACT

This article describes the implementation in the software package NumGfun of classical algorithms that operate on solutions of linear differential equations or recurrence relations with polynomial coefficients, including what seems to be the first general implementation of the fast high-precision numerical evaluation algorithms of Chudnovsky & Chudnovsky. In some cases, our descriptions contain improvements over existing algorithms. We also provide references to relevant ideas not currently used in NumGfun.

Motivation & Objective

  • To bridge the gap between theoretical fast algorithms for D-finite function evaluation and practical software implementation in computer algebra systems.
  • To provide a general-purpose, certified numerical evaluation framework for D-finite functions, including near singularities and at high precision.
  • To implement and optimize the Chudnovsky & Chudnovsky bit burst algorithm with full error control, enabling soft-linear time evaluation.
  • To support both symbolic and numerical computation with D-finite functions, particularly in combinatorics and special functions.
  • To offer a reusable, extensible software package integrated into Maple with formal correctness guarantees.

Proposed method

  • The package uses the bit burst algorithm for fast numerical evaluation of D-finite functions, achieving O(n log^{O(1)} n) bit complexity for n bits of precision.
  • It integrates rigorous error bounds derived from the differential equation and initial conditions, ensuring certified results.
  • For evaluation near singularities, it applies numerical analytic continuation and transition matrix bounds using majorant equations.
  • It employs polynomial approximation via truncated Taylor series of fundamental solutions, with error-controlled expansion orders.
  • The diffeqtoproc function generates certified evaluation procedures over disks by precomputing low-degree polynomials with bounded error.
  • It uses a two-step strategy: estimate the required expansion order from a reference point, then refine if needed for accuracy.

Experimental results

Research questions

  • RQ1Can the Chudnovsky & Chudnovsky bit burst algorithm be implemented in a general-purpose computer algebra system with full error control?
  • RQ2How can certified high-precision evaluation of D-finite functions be achieved at singular points, including irregular ones?
  • RQ3What is the performance and accuracy trade-off of using polynomial approximations over disks for repeated evaluations?
  • RQ4Can numerical evaluation of D-finite functions be made efficient and reliable for both combinatorial sequences and special functions?
  • RQ5How can the algorithm be adapted to work with functions defined by arbitrary linear differential equations with polynomial coefficients?

Key findings

  • The package computes the 100,000th Motzkin number in 4.7 seconds, outperforming naive recurrence unrolling for large indices.
  • It evaluates the double confluent Heun function at z = -0.99 to 1000-digit precision in 22 seconds, demonstrating high-precision capability near singularities.
  • The evaluation of M₁₀⁶ takes 1 minute, yielding a number with approximately 477,112 digits, confirming scalability.
  • The diffeqtoproc function generates certified evaluation procedures that avoid repeated expensive evaluations, reducing total time to ~9 seconds for a full plot.
  • The implementation supports both symbolic bounds (e.g., bound_diffeq) and numerical evaluation (e.g., evaldiffeq) with rigorous error control.
  • The package achieves soft-linear time complexity for high-precision evaluation, matching theoretical bounds from Chudnovsky & Chudnovsky and van der Hoeven.

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.