Yroots locates all real roots inside a compact search interval of a multivariate system of smooth equations. No need for initial guesses, no missed solutions. It only requires the interval and the functions. The same algorithm is implemented three ways: two Python editions (parallel and serial) and a Julia port jroots.
Yroots isolates the real roots of a smooth system on a bounded interval [a, b]. Markers show the zero crossings it returns.
Rootfinders for this problem commonly fall into several broad families, including homotopy continuation methods that track paths from a related system with known solutions, eigenvalue methods based on Möller–Stetter multiplication matrices, and methods that eliminate variables to reduce the system to lower-dimensional problems. Yroots uses a branch-and-bound approach: it builds a Chebyshev interpolant of each function, then repeatedly subdivides and shrinks the search interval using properties specific to the Chebyshev basis. Near a simple zero, the interval is proven to shrink quadratically.
| Method class | Representative solver | Approach |
|---|---|---|
| Homotopy continuation | Bertini, PHCpack | Track paths from a related system with known roots |
| Eigenvalue-based | Mourrain-Telen-vanBarel (MTV) | Recast rootfinding as an eigenvalue problem |
| Dimension Reduction | Chebfun2, Reduce | Eliminate variables to reduce dimension |
| Chebyshev subdivision | yroots / jroots | Subdivide and shrink an interval using Chebyshev basis properties |
We benchmarked our solvers (YRoots and JRoots) against the Mourrain–Telen–vanBarel truncated normal form solver (MTV); Bertini; Mathematica's NSolveValues (a hybrid solver, which uses a combination of different methods; Mathematica's Reduce, which uses cylindrical algebraic decomposition to reduce the dimension of the problem; and ChebFun2, which uses a combination of Chebyshev approximation, interval subdivision, and resultants. Of these, MTV and Bertini work only with polynomial systems, and ChebFun2 only works in two dimensions.
Each solver is benchmarked on the same three families of systems. Dense systems are randomly generated systems of polynomials with every coefficient populated up to a given degree, across dimensions 2 through 5. Sparse systems are also polynomial and keep only a small, fixed number of nonzero terms per polynomial. That sparsity makes higher dimensions tractable. Our tests go up to dimension 8. Chebfun test suite is a fixed set of harder bivariate systems (curves with cusps, near-tangencies, clustered roots), hand picked by the ChebFun2 development team. The results here are pulled live from tylerjarvis/rootfinding_testing.
All three implementations use the same basic algorithm to solve the same problem (zeros of n smooth functions in n variables over a compact interval. The two Python editions differ only in whether the subdivision runs in parallel across threads; and jroots is the Julia port.
Uses Chebyshev polynomial approximation to subdivide the search interval and isolate roots to machine precision. Finds every root as long as the system is smooth, continuous, has finitely many roots in the interval, and each root is simple. If the roots are not simple (the Jacobian is singular) then the rootfinding problem is ill-conditioned and no algorithm can be expected to accurately find the root nor distinguish it from a cluster of several closely spaced simple roots.
Subdivided regions are handed to a worker pool, which is why it wants the free-threaded build.
The same subdivision solver with the parallel driver taken out: one thread, stock CPython. It is the reference the parallel fork is checked against, and the edition to reach for where a free-threaded interpreter isn't available. Same import, same call, but without the two parallel arguments.
A Julia port of the same Chebyshev subdivision algorithm, developed as Julia-Rootfinding. It's an active, in-progress translation of the Python codebase — internally the module is still named YRoots — with a separate FastSolve path for a more optimized solve.
Yroots and its variants are built and maintained by Tyler Jarvis' YRoots group at Brigham Young University. The underlying algorithm is described, and its properties proved, in the paper E. Parkinson, K. Wall, J. Slagle, D. Treuhaft, X. de la Bruere, S. Goldrup, T. Keith, P. Call, and T.J. Jarvis, Chebyshev subdivision and reduction methods for solving multivariable systems of equations, J. of Symbolic Computation 128 (2025) 102392. Some of the underlying ideas and design choices were influenced by our analysis of rootfinding algorithms in S. Parkinson, H. Ringer, K. Wall, E. Parkinson, L. Erekson, D. Christensen, and T.J. Jarvis, Analysis of normal-form algorithms for solving systems of polynomial equations, J. of Computational and Applied Mathematics 411 (September 2022), 114235.
Peter Call· Xander de la Bruere· Lukas Erekson· Samuel Goldrup· Alex Hermosilla· Tyler J. Jarvis· David Kartchner· Timothy Keith· Catherine Kellar· Natalie Larsen· Hyun Lee· Nathan Longhurst· Jeremy Magland· Derek Miller· Tyler Moncur· Erik Parkinson· Hayden Ringer· Jane Slagle· Suzanna Stephenson· Zachary Taylor· Daniel Treuhaft· Kate Wall· Rowan Williams
Thanks also to Simon Telen and Alex Townsend for helpful feedback and suggestions.
This work has been supported in part by the College of Computing, Math, and Science at Brigham Young University; by two Mentoring Environment Grants from Brigham Young University; and by the National Science Foundation under grant DMS-1564502.
If yroots, yroots-serial, or jroots contributed to your research, cite the software you used directly:
yroots-serial and jroots share the same author list — cite them the same way, with url set to tylerjarvis/Rootfinding-serial or tylerjarvis/Julia-Rootfinding respectively.
The Chebyshev subdivision algorithm all three implementations are built on is described and proven in Parkinson, Wall, Slagle, Treuhaft, de la Bruere, Goldrup, Keith, Call & Jarvis, Chebyshev Subdivision and Reduction Methods for Solving Multivariable Systems of Equations, Journal of Symbolic Computation (2024).