Self-replication and Borwein-like algorithms
Jes\'us Guillera

TL;DR
This paper introduces a self-replicating approach to generalize Borwein algorithms for pi, incorporating Gamma function values and providing new fast algorithms for ellipse perimeter calculations.
Contribution
It presents a novel self-replicating method that extends Borwein algorithms to include Gamma function values and develops new rapid algorithms for ellipse perimeter.
Findings
Generalized Borwein algorithms for pi using a self-replicating method.
Included Gamma function values such as Γ(1/3), Γ(1/4), and √π.
Developed new fast algorithms for calculating the perimeter of an ellipse.
Abstract
Using a self-replicating method, we generalize with a free parameter some Borwein algorithms for the number . This generalization includes values of the Gamma function like , and of course . In addition, we give new rapid algorithms for the perimeter of an ellipse.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsPolynomial and algebraic computation · Advanced Mathematical Identities · Advanced Combinatorial Mathematics
\marginsize
3cm3cm3.5cm3.5cm
Self-replication and Borwein-like algorithms
Jesús Guillera
Department of Mathematics, University of Zaragoza, 50009 Zaragoza, SPAIN
To the memory of Jonathan Borwein
Abstract.
Using a self-replicating method, we generalize with a free parameter some Borwein algorithms for the number . This generalization includes values of the Gamma function like , and of course . In addition, we give new rapid algorithms for the perimeter of an ellipse.
1. Introduction
In the mid ’80s the Borwein brothers observed that the modular equations given by Ramanujan could be connected to the number via the elliptic alpha function, to construct extraordinarily rapid algorithms to calculate [6, p. 170]. The point of view of the Borweins is explained in [7], and their proofs require a good knowledge of the elliptic modular functions and forms. In [11] we presented a different and simple strategy and we used it further in [9] applying it to new self-replicating identities of non-hypergeometric type. It is precisely in [9] where we named the technique as self-replication method, and its property as Hidden Modularity, which makes knowledge of modularity (although interesting) unnecessary to prove the algorithms. In this paper we generalize, with a free parameter, some Borwein algorithms for the number , to include some values of the Gamma function, like , and of course . In addition, we give new rapid algorithms for the perimeter of an ellipse.
2. Algebraic transformations
In this section we use known algebraic transformations to obtain self-replication identities.
2.1. Landen’s transformation
Landen (1719-1790) proved the following remarkable formula [1, p. 591]:
[TABLE]
Here, we only will need the particular case written in the following form [6, Thm 1.2 (b)]:
[TABLE]
Observe that this transformation is quadratic because . In [10] we explain how to re-prove known algebraic transformations in an elementary way. Then, if we apply the differential operator
[TABLE]
to both sides of (1), we have
[TABLE]
and we arrive at the self-replicating identity:
[TABLE]
Writing
[TABLE]
we see the self-replication with clarity. In Section 3 we will use the fact that the product of a power of the identity (1) by identity (2) also has a self-replication property.
2.2. Cubic transformation
The following known algebraic transformation
[TABLE]
[8, Chapter 4], is of degree (cubic). Applying to it the operator
[TABLE]
we arrive at the identity
[TABLE]
Writing
[TABLE]
we see that it is a self-replicating identity.
2.3. Quartic transformation
Finally, consider the following known quartic algebraic transformation [8, Chapter 4]:
[TABLE]
Applying to both sides the operator
[TABLE]
we have the identity
[TABLE]
In this case writing
[TABLE]
we see that it is a self-replicating identity.
3. A generalization of Borweins’ algorithms for
In this section we use self-replication formulas and couples of series of Ramanujan-type to derive a kind of rapid algorithms of Borwein-type. A couple of such series is the following known one:
[TABLE]
which can be proved automatically by the Wilf-Zeilberger (WZ)-method due to the presence of the free parameter . We will use this couple of identities to get initial values for our algorithms, but observe that this is only possible for , because we need to use algebraic transformations, to derive the recurrences of the algorithms, and they do not exist for other values of . In [11, Sect. 4] we see other couples of series which can be used to get the initial values and the result to which the quadratic and quartic algorithms tend. To deduce the algorithms we will use the method explained in [11].
3.1. A quadratic algorithm
Taking , we get
[TABLE]
Hence, we have the following formula:
[TABLE]
[TABLE]
observing that (see [11] for the explanation), getting the initial values and the limit from (7), and defining , we arrive at
[TABLE]
which is a quadratic algorithm. Some examples are
[TABLE]
which are algebraic algorithms for , and respectively. We see that the case with the substitution , is a Borweins’ quadratic algorithm for . A related algorithm for is given in [5, p. 137]. In [10] we deduced the Borweins’ quadratic algorithm for from the Gauss-Salamin-Brent algorithm, and it is easy to prove that in fact both algorithms are equivalent.
3.2. A cubic algorithm
In a similar way, from the (3) and (4), defining
[TABLE]
observing that , letting , and taking the initial values from
[TABLE]
we arrive at the following algorithm
[TABLE]
which generalizes a cubic algorithm for due to the Borwein brothers. Some examples are
[TABLE]
which are algebraic algorithms for , and respectively.
3.3. A quartic algorithm
[TABLE]
letting and getting the initial values from (7), we see that taking
[TABLE]
and the recurrences
[TABLE]
we have
[TABLE]
Some examples are
[TABLE]
In [2, Chapter 31] there are many algorithms for , , and other constants related to the evaluation of the elliptic integral at the singular values.
4. The perimeter of an ellipse
The perimeter of an ellipse of semi-axis and with , is given by the elliptic integral
[TABLE]
where is the eccentricity of the ellipse. The development in series of powers of leads to the following hypergeometric formula [12, p. 38-39]:
[TABLE]
which is known to be related to the AGM (Arithmetic Geometric Mean) of Gauss. For details and an historical account see [1]. The authors of that paper comment that an Ivory’s letter of 1796 unmistakenly pointed that he knew it. The following algorithms come from our method of self-replication instead of using the AGM.
4.1. A quadratic algorithm for the perimeter
From the hypergeometric formula (11) for and the self-replicating transformation (2), we can arrive at the following quadratic algorithm:
[TABLE]
In [1, eq. 27] there is a related quadratic algorithm for based on the AGM.
4.2. A quartic algorithm for the perimeter
From the quartic recurrences (9) with :
[TABLE]
and taking as initial values
[TABLE]
we see that
[TABLE]
quartically, that is multiplying by the number of correct digits in each iteration.
Remark 4.1**.**
The papers [1] and [7] are reprinted in [3], and the paper [12] is reprinted in [4]. The books [4] and [3] are two collections of very interesting papers related to the number . The book [2] will be useful for the computationalist, whether a working programmer or anyone interested in methods of computation. The recent nice book [8] by Shaun Cooper deals with Ramanujan’s theta functions, and in the Chapter there are applications to series and algorithms for .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] G. Almkvist and B. Berndt , Gauss, Landen, Ramanujan, the Arithmetic-Geometric mean, Ellipses, π 𝜋 \pi , and the Ladies Diary . Amer. Math. Monthly 95 (1988), 585-608.
- 2[2] J. Arndt , Matters computational (Ideas, Algorithms, Source Code). Springer-Verlag Berlin Heidelberg 2011.
- 3[3] D. Bailey and J. Borwein , Pi: The Next Generation. Springer International Publishing , Switzerland 2016.
- 4[4] L. Berggren, J.Borwein and P. Borwein , Pi: A Source Book. Springer-Verlag , New York, 1997, 2000.
- 5[5] J. Borwein and D. Bailey , Mathematics by Experiment (Plausible Reasoning in the 21st Century). A. K. Peters, Ltd. Wellesley, MA 2008.
- 6[6] J. Borwein and P. J. Borwein , Pi and the AGM: A Study in Analytic Number Theory and Computational Complexity. Canad. Math. Soc. Series Monographs Advanced Texts, John Wiley , New York, 1987.
- 7[7] J. Borwein and P. Borwein , Ramanujan, Modular Equations, and Approximations to Pi or How to Compute One Billion Digits of Pi. Amer. Math. Monthly 96 (1989), 201-219.
- 8[8] S. Cooper , Ramanujan’s Theta Functions. Springer, to appear.
