← Latest papers
🔢 mathematics

Residual-adaptive truncation in an arbitrary-order tangent iteration for π\pi: quadratic growth of the accuracy exponent

This paper introduces a residual-adaptive truncation rule for an arbitrary-order tangent iteration to compute π\pi, which leverages the alternating arctangent series to achieve quadratic growth in the decimal accuracy exponent, thereby enabling the rapid convergence from a single Chudnovsky approximation to over one million correct decimal places.

Original authors: Shih-Han Wang

Published 2026-09-16
📖 6 min read🧠 Deep dive

Original authors: Shih-Han Wang

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The quest to calculate the number pi, the ratio of a circle's circumference to its diameter, has long served as a proving ground for the most powerful tools of mathematics. While the number itself is simple to define, its infinite, non-repeating decimal expansion makes it a perfect test case for how we handle complex calculations. For centuries, mathematicians have relied on two main strategies to find more digits of pi. The first involves adding up long lists of numbers in a series, where each new term adds a fixed, predictable amount of accuracy. The second strategy uses iterative methods, where a computer starts with a rough guess and repeatedly refines it. In these iterative approaches, the goal is usually to double the number of correct digits with every single step, a process known as quadratic convergence. While these methods are incredibly fast, they typically follow a rigid script: the formula used to improve the guess stays the same, even as the guess becomes more precise.

A new study by Shih-Han Wang at Virginia Tech challenges the idea that the script must remain rigid. The research introduces a method where the calculation itself changes its behavior based on how close it is to the answer. Instead of using a fixed formula, the method looks at the current error—the difference between the current guess and the true value of pi—and uses that error to decide how many terms to include in the next calculation step. This creates a self-adjusting system where the speed of improvement accelerates dramatically as the calculation gets better. The study demonstrates that this approach does not just double the number of correct digits; it squares the number of correct digits with each step, leading to an explosion of precision that far outpaces traditional fixed-order methods.

The core of this work lies in a specific mathematical relationship involving the tangent function. When a number is very close to pi, its tangent value is extremely small, and this small value acts as a direct measure of the error. The researcher realized that the size of this error could be used to determine exactly how many correction terms are needed to fix the guess. In a standard method, a mathematician might decide to use a formula that corrects the first ten terms of an expansion, regardless of whether the current guess is off by a tiny fraction or a large amount. In Wang's adaptive method, the computer checks the size of the error first. If the error is large, it uses a short correction. If the error is tiny, it automatically switches to a much longer, more detailed correction. This decision is made at every single step, making the process non-stationary, meaning the rules of the game change as the game progresses.

The results of this adaptive strategy are mathematically profound. The study proves that if a calculation has a certain number of correct digits, the next step will produce a number of correct digits that is roughly the square of the previous count. To put this in perspective, if a calculation has achieved 10 correct digits, the next step would jump to approximately 100 correct digits. If it reaches 1,000 correct digits, the following step would leap to one million. This is a fundamental shift from the linear or quadratic growth seen in other high-speed algorithms. The paper shows that this growth is not just a theoretical possibility but a proven mathematical law for this specific type of iteration, provided the starting guess is already reasonably close to the true value.

To verify these findings, the researcher ran a numerical experiment starting with a well-known approximation of pi derived from the Chudnovsky formula. The initial guess was accurate to about 13 decimal places. After the first adaptive step, the accuracy jumped to roughly 385 correct digits. The second step pushed the precision to nearly 300,000 correct digits. The third step was so powerful that it theoretically produced over 100 billion correct digits, a number so vast that the computer could only verify the first one million digits against a known reference standard. The fact that the first million digits matched the reference perfectly confirmed that the theoretical predictions were accurate. The method successfully generated a sequence of approximations that grew in precision exactly as the mathematical model predicted, moving from thousands to millions of digits in just a few iterations.

This work distinguishes itself from other high-speed methods by its flexibility. While other algorithms might be designed to have a fixed "order" of convergence, such as doubling or tripling the digits each time, this method has no fixed order. Instead, its order of convergence grows automatically as the calculation improves. The study clarifies that this does not mean the method is infinitely fast in a practical sense, as the cost of performing the calculations also increases with the number of digits. However, in terms of the mathematical relationship between the current error and the next error, the improvement is faster than any fixed power of the current error. The research provides a rigorous proof that the error in the next step becomes vanishingly small compared to any fixed power of the current error, a property that sets it apart from all previously known fixed-order iterations.

The study also addresses the boundaries of its own success. The method relies on the starting guess being within a specific range of the true value of pi, specifically within a quarter of a radian. Fortunately, the starting point used in the experiment, derived from the Chudnovsky formula, falls well within this safe zone. Once the calculation enters this zone, the method guarantees that it will stay there and continue to improve. The paper does not claim to solve the problem of finding pi from a random starting point, but rather offers a highly efficient engine for refining a guess that is already close. It also notes that while the mathematical convergence is spectacular, the actual time it takes to run these calculations on a computer depends on how efficiently the computer can handle the massive number of digits involved, a separate engineering challenge.

Ultimately, this research offers a new way of thinking about how we refine numerical answers. It suggests that when a correction formula is available in a flexible form, the current error can be used not just to measure progress, but to dictate the strategy for the next move. By letting the error determine the depth of the correction, the method transforms a standard iterative process into a self-accelerating system. The findings are supported by both rigorous mathematical proof and direct numerical verification, showing that the number of correct digits can indeed grow at a rate that squares the previous accuracy. This approach opens a new avenue for high-precision arithmetic, demonstrating that the path to extreme accuracy can be paved by algorithms that adapt their own rules as they go.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →