Skip to main content
QUICK REVIEW

[Paper Review] General Complex Polynomial Root Solver and Its Further Optimization for Binary Microlenses

J. Skowron, Andrew Gould|arXiv (Cornell University)|Mar 5, 2012
Astronomy and Astrophysical ResearchPhysics and Astronomy2 references24 citations
TL;DR

This paper presents a new complex polynomial root solver that dynamically selects between Laguerre’s, Newton’s, and a novel intermediate method based on a discriminant, achieving 1.6–3× speedup over commercial solvers like ZROOTS. It is optimized for binary microlensing, where it reduces computation time by upskilling root-finding through problem-specific heuristics and fail-safe numerical robustness.

ABSTRACT

We present a new algorithm to solve polynomial equations, and publish its code, which is 1.6-3 times faster than the ZROOTS subroutine that is commercially available from Numerical Recipes, depending on application. The largest improvement, when compared to naive solvers, comes from a fail-safe procedure that permits us to skip the majority of the calculations in the great majority of cases, without risking catastrophic failure in the few cases that these are actually required. Second, we identify a discriminant that enables a rational choice between Laguerre's Method and Newton's Method (or a new intermediate method) on a case-by-case basis. We briefly review the history of root solving and demonstrate that "Newton's Method" was discovered neither by Newton (1671) nor by Raphson (1690), but only by Simpson (1740). Some of the arguments leading to this conclusion were first given by the British historian of science Nick Kollerstrom in 1992, but these do not appear to have penetrated the astronomical community. Finally, we argue that Numerical Recipes should voluntarily surrender its copyright protection for non-profit applications, despite the fact that, in this particular case, such protection was the major stimulant for developing our improved algorithm.

Motivation & Objective

  • To develop a faster, robust complex polynomial root solver for astronomical applications, particularly binary microlensing.
  • To reduce computational cost in modeling gravitational lens light curves, where root finding consumes up to 80% of processing time.
  • To improve numerical stability and efficiency by intelligently selecting between Laguerre’s, Newton’s, and a new intermediate root-finding method.
  • To optimize the solver specifically for the fifth-order complex polynomial arising in binary lens equations.
  • To address the lack of accessibility and transparency in existing commercial solvers like Numerical Recipes by releasing open-source code with permissive licensing.

Proposed method

  • Employs a fail-safe procedure that skips most calculations in the majority of cases without risking failure in edge cases.
  • Introduces a discriminant-based decision rule to select the optimal root-finding method (Laguerre, intermediate, or Newton) on a per-root basis.
  • Uses a two-phase approach: first, robust root finding via successive division after each root is located; second, polishing the roots using the full polynomial.
  • Implements a new dynamic method (CMPLX_LAGUERRE2NEWTON) that transitions between Laguerre, a new intermediate method (SG), and Newton’s method based on convergence behavior.
  • Applies problem-specific optimizations for binary microlensing, such as sorting roots by separation and using analytic solvers for quadratic and cubic subproblems.
  • Uses a stopping criterion based on convergence thresholds and iteration limits to balance speed and accuracy.

Experimental results

Research questions

  • RQ1Can a general complex polynomial root solver be significantly accelerated without sacrificing numerical robustness?
  • RQ2What discriminant can reliably guide the choice between Laguerre’s, Newton’s, and an intermediate method for optimal performance?
  • RQ3How can the structure of the binary lens equation be exploited to further optimize root-finding beyond general polynomial solvers?
  • RQ4What are the practical limits of numerical precision in lens equation solvers, and are these known in the astronomical community?
  • RQ5Should commercial numerical libraries like Numerical Recipes voluntarily waive copyright for non-profit academic use to promote open science?

Key findings

  • The new solver is 1.6–3 times faster than the commercially available ZROOTS subroutine, depending on the application.
  • The dynamic method selection based on a discriminant significantly improves performance by avoiding suboptimal root-finding strategies.
  • The fail-safe procedure enables skipping most calculations in the majority of cases, contributing to the speedup without compromising reliability.
  • The algorithm achieves substantial performance gains in binary microlensing by exploiting the specific structure of the fifth-order complex polynomial.
  • The authors identify numerical precision limits in lens solvers that appear to be unknown to astronomers but may be known in numerical mathematics circles.
  • The open-source code is released with a permissive license, encouraging academic use and transparency, and the authors advocate for similar copyright waivers in numerical software.

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.