Updates Reduction process Software PI evaluation programs Measures Tweaking LOGOUT / REFERENCES
Identity lists (Classification, Layout, & Links) Self-checking pairs of identities
COMPUTING PI: LISTS OF MACHIN-TYPE
(INVERSE COTANGENT) IDENTITIES FOR PI/4
(and more than a half-million decimal
digits of PI)
Edited by Michael Roby Wetherfield
& Hwang Chien-lih (last
updated 29 July 2010)
|
We were saddened to read of the death on 21st June 2007
of Professor John Todd who, in his paper "A problem on arc
tangent relations" (Amer. Math. Monthly 56 (1949),
pp. 517-528), described his process for the reduction of inverse
cotangents, gratefully acknowledged as the basis for much of
the material in this website. |
N.B.:
THE NOTATION "[x]" IS USED TO REPRESENT "arccot(x)"
(= arctan(1/x)) THROUGHOUT THIS SITE.
The Machination software we have
used to generate our own contribution to these lists depends on
John Todd's beautiful "reduction" process. Todd showed
how the inverse cotangents of certain integers are "irreducible",
all these "irreducibles" (apart from [1]) being associated
in a 1-1 correspondence with the primes congruent to 1 (modulo
4) - for example, because n=9 is the smallest integer for which
41 divides (n² + 1), [9] is irreducible and is associated
with the prime 41. Accordingly, [1] is associated with the prime
2; the irreducibles associated with the primes 5, 13, 17, 29 and
37 are respectively [2], [5], [4], [12] and [6], and so on (for
further details, refer to "Reduction
process"). Like "prime", the word "irreducible"
may be used as a noun or an adjective, according to context.
Just as any composite integer
can be expressed uniquely as a product of primes, Todd's process
enables any inverse integral cotangent which is not itself irreducible
to be expressed as a unique linear sum of irreducibles with positive
or negative integer coefficients, i.e. "reduced" (in
any such "reduction" the irreducible cotangent values
are all numerically less than the reduced integer cotangent value).
The process can also be used to obtain reductions of inverse rational
cotangents, in particular of the inverse cotangents of half-integer
values. By convention, the terms in any reduction are arranged
in increasing sequence of irreducible cotangent values.
If the largest prime factor of
(n² + 1) is less than 2n, [n] is not irreducible, so [3],
[7], [8], [13], etc., are not irreducibles; their "reductions"
are:
[3] = [1] - [2]
[7] = -[1] + 2[2]
[8] = [1] - [2] - [5]
[13] = [1] - [2] - [4]
etc.
Measuring arccotangents in radians,
[1] = PI/4; eliminating [2] from the above reductions of [3] and
[7], the equation ([1]=) PI/4 = 2[3] + [7] is obtained. This identity
(the term used herein to refer to such arccotangent 'formulae'
for PI/4) is nowadays credited to John Machin (1680-1751). The
reduction of [239] is -[1]+4[5], giving ([1]=) PI/4 = 4[5] - [239],
the exact equivalent of Machin's own celebrated identity of 1706.
Top of page
Our software
operates on a database, continually being expanded, of reductions
of both integer and "half-integer" arccotangents, an
example of the latter being: [1011/2] = [1]-3[2]+[4]+[5]+[6].
Half-integer terms of the form "[N/2]" appear explicitly
in our identities - in practice, they are no harder to evaluate
than inverse integral cotangents; those who prefer to deal only
with the latter may mentally substitute the expression {2[N] - [N(N²+3)/2]} for "[N/2]" (in this example:
{2[1011] -
[516683682]}). This database
comprises a number of text files - the first of these contains
the reductions of all inverse cotangents [N] and [N/2] for which
the largest prime factor of (N² + 1), or (for half-integers)
of (N² + 4), is at most 97; each of the remaining files corresponds
to a single irreducible whose associated prime exceeds 97.
For example, since (49² +
1) = 2.1201 (i.e. the prime 1201 is associated with the irreducible
[49]), the file corresponding to the irreducible [49] just contains
reductions of inverse cotangents [X], where X = N (integer) or
X = N/2 (half-integer), and 1201 is the largest
prime factor of (N² + 1) or (N² + 4) respectively; every
one of these reductions is certain to include a multiple of [49],
but none of the reductions in the files corresponding to irreducibles
whose associated prime is less than 1201 can include
multiples of [49].
The software includes programs
which can search this database for all reductions involving only
a wholly- or partly-specified set of irreducibles, and (treating
these reductions as simultaneous linear equations, as in the example
above) can then attempt to eliminate all the irreducibles except
[1] from the equations in increasing sequence (i.e. [2], [4],
[5], [6],...). This process, if successful, leads to an arccotangent
identity with [1], or a positive multiple of [1], on the LHS.
The irreducibles eliminated are referred to as the "eliminated
set" (sometimes some irreducibles cannot be eliminated, but
feature in the resultant identity).
We have no plans to extend the
database to include reductions of inverse fractional cotangents
involving denominators greater than 2.
Many of the identities in our
lists are present either for their historical interest, or as
a record of the progress made by the editors in their search for
new identities. Every identity has a "measure"
which is the sum of the reciprocals of the logarithms, to base
10, of the cotangent values (integers and half-integers) it includes
- the smaller the measure, the better. We also use an identity's
measure, to 5 decimal places, to act as a distinguishing identifier
for it.
Our current "best"
identity has measure 1.26579.
Top of page
Any serious attempt to compute
PI using arccotangent identities will usually rely on a pair of
mutually-checking identities, the results only being acceptable
if no significant discrepancies are detected. To minimise computation
time, the pair should share as many cotangent values as possible,
having coefficients which (after "normalisation" relative
to the coefficient of [1]) must be different in the two identities.
Examples are listed on the "Self-checking
pairs" page; the "Compound measure" shown on
the line preceding each pair, used to index the pair's efficacy,
is the sum of the reciprocals of the logarithms of all distinct
cotangent values (DCVs), in effect the sum of the measures of
the two identities, but with the contributions of shared cotangent
values counted only once. Pairs are grouped according to the number
of DCVs they contain, making it easier for users with a particular
number of PCs at their disposal to choose a suitable pair to use
in a computation.
To determine whether a particular
collection of irreducibles can provide us with a worthwhile self-checking
pair, we search the database for all reductions involving only
these irreducibles, and then attempt to find within those the
"best" linearly-independent set of reductions from which
all of these irreducibles, as well as [1], can be eliminated
- i.e. we look for a linear sum of "reducible" inverse
integer and half-integer cotangents equating to 0. If any single
"reducible" is then omitted from this set of values,
an identity should be obtainable from the values remaining, any
two such identities constituting a "self-checking" pair.
All such "pairs" will have the same "best"
Compound measure - by convention, we choose the two identities
obtained by omitting in turn the two lowest cotangent values in
the set, so that the resulting pair of identities have the least
measures obtainable.
Our current "best"
mutually-checking pair of identities has Compound measure 1.81462.
To access the classified lists of identities, follow a link to "Identity lists".
To access the list of self-checking pairs of identities, follow a link to "Self-checking pairs".
To explore some of the byways, follow links in the top line of this page.
UPDATES
(29 Jul 10)
- 2 new 4-digit identities with measures
1.60270 and 1.60915.
- New 11-DCV self checking pair with
Compound measure 1.88906.
(3 Jul 10)
- 3 new 3-digit identities with measures
1.52140, 1.54508, and 1.57583.
- New 11-DCV self checking pair with
Compound measure 1.89978.
(20 Jun 10)
- New 8-digit identities - measures 1.68684
("best") and 1.71689.
- New 16-DCV self-checking pairs with
Compound measures 1.87953 and 1.88826.
- New 7-digit identity (measure 1.68684),
used in new 15-DCV self-checking pair with Compound measure 1.87150.
- New 9-digit identities (measures 1.77012
and 1.77418), used in new self-checking pairs with Compound measures
1.90443 (18 DCVs) and 1.90053 (19 DCVs) respectively.
(19 May 10)
- New 14-digit identity with measure
2.09212.
(22 March 10)
- 'Software' page updated (and corrected)
in line with 18 Mar 10 update.
(18 March 10)
- Website title, and wording of above
introduction, revised to remove emphasis on inverse integral
cotangent terms in identities.
Top of page
(4 March 10)
- New 6-digit identity 1.67150.
- New 5-digit identity 1.59935.
- New 10-DCV self-checking pair with
Compound measure 1.85728.
- New 11-DCV self-checking pair with
Compound measure 1.90559.
- New 14-DCV self-checking pair with
Compound measure 1.87794.
- New 17-DCV self-checking pair with
Compound measure 1.88563.
- Two new 23-DCV self-checking pairs
with Compound measures 1.95164 and 1.95515.
(28 Feb 10)
- New 7-digit identities 1.67839, 1.68595
and 1.68755.
- New 9-digit identity 1.77850.
- New self-checking pairs (16 DCVs) with
Compound measures 1.86672, 1.87315 and 1.89384.
- New self-checking pairs with Compound
measures 1.89351 (14 DCVs) and 1.91244 (19 DCVs).
- Revised wording on "Identity Lists"
page to clarify categorisation of identities with more than four
terms.
Top of page
(9 Feb 10)
- "New" 4-digit identity (1.57796)
(actually known since 15 Oct 09, used in 10-DCV pair with Compound
measure 1.88503).
- New 9-DCV pair with Compound measure
1.99954.
- Two new 11-DCV pairs with Compound
measures 1.91649 and 1.91976, substituted for 1.92785 pair.
(4 Feb 10)
- New paragraph inserted above describing
how the "Reductions" database is used to find "self-checking
pairs".
- Two new self-checking pairs having
17 DCVs, with Compound measures 1.89137 and 1.90452 (the former
includes a new "top 20" 8-digit identity with measure
1.74216; the latter replaces an earlier pair with Compound measure
1.90468, based on the same eliminated set, by substituting a
half-integer cotangent value for an integer value previously
used in each member of the pair).
(20 Jan 10)
- New identities: 1.63821 (5-digit),
1.83943 (11-digit).
(18 Jan 10)
- New self-checking pairs with Compound
measures 1.83265, 1.88815, 1.88345, & 1.89984 (14, 15, 16,
& 18 DCVs respectively).
- Compound measure of existing self-checking
pair with 16 DCVs enhanced from 1.89423 to 1.88278 by substitution
of improved "triplet" in both identities.
(17 Jan 10)
- Eight new identities: 1.64293 (6-digit),
1.65659, 1.69035 & 1.70357 (7-digit), 1.72550 (8-digit),
1.77402 & 1.77764 (9-digit), 1.81903 (10-digit).
- Measure of 2nd member of a self-checking
pair (8 DCVs, Compound measure 1.97950) corrected to 1.65667
(was 1.65567).
Top of page
(10 Jan 10)
- New self-checking pairs with Compound
measures 1.85963, 1.86158, 1.86857 (13 DCVs).
- New self-checking pairs with Compound
measures 1.86482, 1.89098, & 1.89581 (15, 17, & 18 DCVs
respectively).
- New 6-digit (1.65034), 7-digit (1.70389)
and 9-digit (1.74825) identities, members of three of the above
pairs.
(15 Dec 09)
- New self-checking pair with Compound
measure 1.88416 (14 DCVs).
(25 Nov 09)
- New self-checking pair with Compound
measure 1.91882 (21 DCVs).
- New self-checking pair with Compound
measure 1.92383 (20 DCVs).
(21 Nov 09)
- New 14-digit identity with measure
2.09319 (enhancement of 2.09732).
- New 12-digit identity with measure
1.93374.
(20 Nov 09)
- New self-checking pair with Compound
measure 1.94843 (9 DCVs).
- 5-digit identifier 1.60893 (15Aug06)
(masquerading as a 4-digit identifier) relocated.
Top of page
(16 Nov 09)
- New self-checking pair with Compound
measure 1.87079 (15 DCVs).
(13 Nov 09)
- New self-checking pair with Compound
measure 1.89423 (12 DCVs).
(11 Nov 09)
- New self-checking pair with Compound
measure 1.88391 (14 DCVs).
- Compound measure of 8 term self-checking
pair corrected from 1.97625 to 1.97626.
(10 Nov 09)
- Two new self-checking pairs (each with
13 DCVs) with Compound measures 1.86545 and 1.87056.
(17 Oct 09)
- New self-checking pair with Compound
measure 1.88503 (10 DCVs).
- New self-checking pair with Compound
measure 1.97625 (8 DCVs).
- New self-checking pair with Compound
measure 1.98021 (9 DCVs).
Top of page
(13 Oct 09)
- New self-checking pair with Compound
measure 1.92785 (11 DCVs).
(12 Oct 09)
- New 2-digit identity 1.65181.
(11 Oct 09)
- Misprint on "Software" page
corrected (half-integer quoted as limiting value for integers
in "Reductions" database).
- New self-checking pair with Compound
measure 2.00593 (9 DCVs).
(8 Oct 09)
- 6-digit identity 1.66798 improved to
1.66525 (and associated "pair" from 1.88026 to 1.87752).
(2 Oct 09)
- Some tidying-up of 4-digit identities.
(1 Oct 09)
- Some "tweaked" improvements
to 2-digit identities.
(28 Sep 09)
- New "natural" half-integer
convention applied to all identity lists.
Top of page
(27 Sep 09)
- New "tweaked" 4-digit identities
1.55580 and 1.56837 added.
(26 Sep 09)
- In 3-digit identities, new 2nd- and
3rd-best identities added.
- In 4-digit identities, ASN's 1.50337
re-instated.
- In 2-digit identities, new identity
1.51607 added.
(25 Sep 09)
- 2-digit identities amended to insert
new "best" with measure 1.50085. Some cross references
corrected.
- Some less important "Updates"
removed from list below.
(24 Sep 09)
- The "Tweaking" page has been
more drastically edited, to reflect changes to the associated
software, and also to announce some resulting successes.
- These "successes" have been
incorporated in 2-digit, 3-digit, and 4-digit identities, and
in self-checking pairs involving 9 and 10 DCVs.
- Many of the resulting changes involve
a half-integer term [3375905320682366575989 / 2]. Since the cube
of the numerator of this fraction takes up an inordinate amount
of space, it has been decided to abandon the rather artificial
practice of representing half-integer terms as pairs of integers
(this change is on-going).
(1 Aug 09)
- Layout of identities (on "Identity
lists" page) updated to introduce notion of "back-formed"
identities, identified by discovery date shown as "(***)".
2-digit, 3-digit and 4-digit identity pages updated to conform.
Top of page
(31 Jul 09)
- A note has been inserted on the "Identity
Lists" page to clarify the significance of asterisked references
to other identities.
(23 Jun 09)
- Some home-grown self-checking pairs
discarded - most with Compound measures exceeding 2.2.
(7 Jun 09)
- A selection of Amrik Singh Nimbran's
identities, discovered during 2007-8 and recently sent to us,
appear in the 3- and 4-digit lists. We are grateful for these
- more of them are likely to be included after checking; they
have stimulated us to generate new identities ourselves.
(25 May 09)
- "Computing PI" added to title.
(27 Feb 09)
- Page added describing programs used
to perform evaluation of PI featured on this website.
(11 Jan 09)
- Preparation for revival of website
(lapsed since end July 2008) with URL changed to <http://www.machination.eclipse.co.uk>.
(12 Mar 08)
- Our attention has recently been drawn
to Ian Tweddle's 1991 paper "John Machin and Robert Simson
on Inverse-tangent series for PI" (v. detailed reference
on LOGOUT page). This paper, and its references, show convincingly
that Machin submitted a paper to the Royal Society in 1705 or
1706 which described not only the four 2-term identities listed
herein (including his "famous" one), but also a 3-term
identity hitherto attributed to Loney (1893); moreover Simson
(1687-1768) can now be credited with describing, in 1723, the
3-term identity documented by Klingenstierna in 1730. These attributions
have accordingly all been revised.
Top of page