An Exponential Correction to Ramanujan’s Second Formula for Ellipse Perimeter Computation
Abstract
1. Introduction
2. Historical Overview and Related Work
2.1. Arithmetic and Geometric Mean Approximations to the Ellipse Perimeter
2.2. Peano’s Formula
2.3. Euler’s Formula
2.4. Euler-Ivory’s Series Expansion
2.5. Ramanujan I
2.6. Ramanujan II
2.7. Ramanujan-Cantrell’s Formula
2.8. Koshy’s Formulas for Quarter-Perimeter
2.9. Recent Approaches
2.10. Error Analysis for Extreme Ratios of
3. Methodology
3.1. Numerical Computation of the Exact Elliptic Integral
3.2. One-Exponential Heuristic Correction to ()
| Algorithm 1 Minimax fitting of corrected Ramanujan II ellipse-perimeter approximations |
| Require: fixed , interval , number of grid points N, model type |
| Ensure: optimal parameters and maximum relative error |
|
3.3. Two-Exponential Heuristic Correction to ()
- The error approaches the error in in the range ,
- Maximum relative error ppm in the full range .
4. Numerical Evaluations
4.1. Computational Setup
4.1.1. Setup for Minimax Fitting
4.1.2. Setup for Evaluation of the Formulas
4.2. Relative Error Comparison (Selected Methods)
4.3. Summary of Maximum Errors
5. Discussion
6. Conclusions
- A compact closed-form approximation for the ellipse perimeter has been developed by introducing an exponential correction to Ramanujan’s second formula.
- We have designed a method with exceptional accuracy that simultaneously preserves minimal computational and notational overhead. Specifically, our expression is a compact closed-form and single-line formula that achieves [Equation (20)] a maximum relative error of approximately ppm (at , , ) over the dense grids tested covering the full eccentricity range, i.e., .
- As far as we know, our method outperforms in accuracy and compactness all other approaches that are currently reported in peer reviewed publications.
- In this project, we have shown that even more refined and modern formulas of Cantrell, Koshy and Moscato, still have errors of 25, 15, and times larger than ours, respectively.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Sivagnanam, S.; Kailasapathi, P.; Ramesh Kumar, S. A Multi-band crescent shaped microstrip patch antenna with spiral shape ground slot for UWB applications. Int. J. Res. Eng. Appl. Manag. 2018, 4, 489–493. [Google Scholar]
- Brehl, D.E.; Dow, T.A. Review of vibration-assisted machining. Precis. Eng. 2008, 32, 153–172. [Google Scholar] [CrossRef] [Scilit]
- Nakka, R.; Kumar, A.P.; Harursampath, D.; Ponnusami, S.A. Influence of fibre cross-section profile on the multi-physical properties of uni-directional composites. Compos. Struct. 2023, 321, 117321. [Google Scholar] [CrossRef] [Scilit]
- Sun, X. Development of an Improved Thermal Model of the Human Body and an Experimental Investigation of Heat Transfer from a Moving Cylinder. Ph.D. Thesis, Kansas State University, Manhattan, KS, USA, 2012. [Google Scholar]
- Kepler, J. Astronomia Nova; G. Voegelinus: Heidelberg, Germany, 1609; Available online: https://archive.org/details/Astronomianovaa00Kepl (accessed on 21 March 2026).
- Almkvist, G.; Berndt, B. Gauss, Landen, Ramanujan, the arithmetic–geometric mean, ellipses, π, and the Ladies Diary. Am. Math. Mon. 1988, 95, 585–608. [Google Scholar]
- Sýkora, J. Approximations of Ellipse Perimeters and of the Complete Elliptic Integral E(x). Review of Known Formulae. Ebyte.it Stan’s Library III. 2005. Available online: http://www.ebyte.it/library/docs/math05a/EllipsePerimeterApprox05.html (accessed on 21 March 2026).
- Kennedy, H.C. Selected Works of Giuseppe Peano; University of Toronto Press: Toronto, ON, Canada, 1973; Available online: http://www.jstor.org/stable/10.3138/j.ctt1vxmd8x (accessed on 21 March 2026).
- Euler, L. Nova Series Infinita Maxime Convergens Perimetrum Ellipsis Exprimens. 1774. Available online: https://scholarlycommons.pacific.edu/euler-works/448 (accessed on 21 March 2026).
- Michon, G.P. Final Answers: Perimeter of an Ellipse. 2007. Available online: https://www.numericana.com/answer/ellipse.htm (accessed on 21 March 2026).
- Ramanujan, S. Modular equations and approximations to π. Q. J. Math. 1914, 45, 350–372. Available online: https://ramanujan.sirinudi.org/Volumes/published/ram06.pdf (accessed on 21 March 2026).
- Koshy, K.I. Ellipse perimeter approximation: Two high accuracy formulae derived from a perimeter property. Int. J. Sci. Res. Math. Stat. Sci. 2024, 11, 1–5. [Google Scholar]
- Moscato, P.; Ciezak, A. A new approximation for the perimeter of an ellipse. Algorithms 2024, 17, 464. [Google Scholar] [CrossRef] [Scilit]
- Sýkora, S. Advances in Approximations of Ellipse Perimeters and of the Complete Elliptic Integral. Stan’s Library. 2007. Available online: https://www.researchgate.net/publication/331938805_Advances_in_Approximations_of_Ellipse_Perimeters_and_of_the_Complete_Elliptic_Integral (accessed on 21 March 2026).
- Powell, M.J.D. Approximation Theory and Methods; Cambridge University Press: Cambridge, UK, 1981. [Google Scholar]
- Ayala-Raggi, S.E. Ellipse Perimeter Approximation. GitHub Repository. 2026. Available online: https://github.com/sraggi/ellipse_perimeter_approx (accessed on 21 March 2026).


| Method | (ppm) | ||
|---|---|---|---|
| Geometric mean (1609) | 0 | ||
| Arithmetic mean (1609) | |||
| Euler (1774) | |||
| Peano (1889) | |||
| Ramanujan I (1914) | |||
| Ramanujan II (1914) | |||
| Cantrell (2004) | 4 | 0 | |
| R2/2exp (proposed in this work) |
| Formula | a = 1000 and | b = 1 and | b = 1 and |
|---|---|---|---|
| A.M. Equation (2) | 21.38195%/213,819.50 ppm | 20.69656%/206,965.61 ppm | 21.38195%/213,819.50 ppm |
| Euler | 11.0717% /110,716.96 ppm | 11.04714%/110,471.35 ppm | 11.07170%/110,716.96 ppm |
| Ramanujan I | 0.4068762%/4068.76 ppm | 0.3420281%/3420.28 ppm | 0.4068762%/4068.76 ppm |
| Ramanujan II | 0.03784220%/378.42 ppm | 0.0238977%/238.98 ppm | 0.0378422%/378.42 ppm |
| Cantrell | 0.001446076%/14.46 ppm | 0.001446075%/14.46 ppm | 0.001406936%/14.07 ppm |
| Koshy 2 | 0.0009337747%/9.34 ppm | 0.0009337747%/9.34 ppm | 0.0001083570%/1.08 ppm |
| Koshy 1 | 0.0008735187%/8.74 ppm | 0.0008735186%/8.74 ppm | 0.00008046597%/0.80 ppm |
| Moscato | — | 0.0002697398%/2.70 ppm | 0.0002721463%/2.72 ppm |
| R2/1exp | 0.003167%/31.67 ppm | 0.00021458%/2.14 ppm | 0.003167%/31.67 ppm |
| R2/2exp | 0.0000573%/0.57 ppm | 0.0000573%/0.57 ppm | 0.0000573%/0.57 ppm |
| Formula | Absolute Maximum Relative Error (ppm) | |
|---|---|---|
| Ramanujan I | 1 | 4155.03 |
| Ramanujan II | 1 | 402.337 |
| Cantrell | 0.805747 | 14.4608 |
| Koshy 2 | 0.469204 | 9.33774 |
| Koshy 1 | 0.234143 | 8.73519 |
| Moscato | 0.977093 | 2.72138 |
| R2/1exp (proposed) | 1 | 40.27 |
| R2/2exp (proposed) | 0.7483 | 0.573 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Ayala-Raggi, S.E.; Rendón-Marín, M. An Exponential Correction to Ramanujan’s Second Formula for Ellipse Perimeter Computation. AppliedMath 2026, 6, 56. https://doi.org/10.3390/appliedmath6040056
Ayala-Raggi SE, Rendón-Marín M. An Exponential Correction to Ramanujan’s Second Formula for Ellipse Perimeter Computation. AppliedMath. 2026; 6(4):56. https://doi.org/10.3390/appliedmath6040056
Chicago/Turabian StyleAyala-Raggi, Salvador E., and Manuel Rendón-Marín. 2026. "An Exponential Correction to Ramanujan’s Second Formula for Ellipse Perimeter Computation" AppliedMath 6, no. 4: 56. https://doi.org/10.3390/appliedmath6040056
APA StyleAyala-Raggi, S. E., & Rendón-Marín, M. (2026). An Exponential Correction to Ramanujan’s Second Formula for Ellipse Perimeter Computation. AppliedMath, 6(4), 56. https://doi.org/10.3390/appliedmath6040056
