History of Mathematics
in India IIT Gandhinagar, home

Explainer

Mādhava’s series for π

With the end-correction

sourceMādhava of Saṅgamagrāma, c. 1400; Kriyākramakarī and Yuktibhāṣā, c. 1530

व्यासे वारिधिनिहते रूपहृते व्याससागराभिहते ।
त्रिशरादिविषमसंख्याभक्तमृणं स्वं पृथक् क्रमात् कुर्यात् ॥

vyāse vāridhinihate rūpahṛte vyāsasāgarābhihate |
triśarādiviṣamasaṃkhyābhaktam ṛṇaṃ svaṃ pṛthak kramāt kuryāt ||

Multiply the diameter by four and divide by one; then multiply it by four and divide successively by the odd numbers three, five and so on; subtract and add the results in turn.

Mādhava, as quoted in Śaṅkara Vāriyar’s Kriyākramakarī on Līlāvatī 199, and in the Yuktidīpikā on Tantrasaṅgraha 2

What the verse says

Four times the diameter, less four times the diameter divided by three, plus four times the diameter divided by five, and so on through the odd numbers: the sum is the circumference. In the modern notation this is π = 4(1 − 1⁄3 + 1⁄5 − 1⁄7 + …), the series that Leibniz later found in Europe, and that Śaṅkara Vāriyar, writing around 1530, quotes as “a still easier way” stated by Mādhava, whom he has just named. Mādhava of Saṅgamagrāma worked in Kerala around 1400, and his work on the circle is known only from the quotations of his school.

The series is true but slow. Ten terms give 3.04, and a hundred terms are still wrong in the second decimal place. What makes it usable is the second half of the quotation: a correction to apply after stopping. Stop after dividing by any odd number, and take the even number that follows it. Half of that even number is the multiplier, and the square of the even number plus one is the divisor; four times the diameter, multiplied and divided so, is added when the last term was subtracted, and subtracted when it was added. For a stop after n terms the correction is n ⁄ (4n² + 1), and it turns ten terms into 3.14159.

Two more corrections were in use. The simplest, 1 ⁄ 4n, is the first step of the Yuktibhāṣā’s derivation; the finest, which the Kriyākramakarī adds a few pages on as “a correction somewhat subtler even than this”, takes the square of half the even number plus one as the multiplier, and for the divisor four times that, plus one, times half the even number: (n² + 1) ⁄ (4n³ + 5n). With it, ten terms give π to seven places and fifty terms to eleven. The Yuktibhāṣā, Jyeṣṭhadeva’s Malayalam exposition of the school’s reasoning, derives the first two from the sizes of the errors the series leaves, states the third, and shows how the corrections can be folded back into faster series, among them 3 + 4⁄(3³ − 3) − 4⁄(5³ − 5) + …, which also appears in the Kriyākramakarī.

The instrument

Set the number of terms and choose a correction. The chart plots the partial sums in sindūra, swinging above and below π, and the corrected values in nīla, which settle on the line almost at once. The table gives the digits that are right at each stage. Press play to watch the terms arrive one at a time.

How accurate he was

The same passage of the Kriyākramakarī preserves Mādhava’s own figure for the circle: for a diameter of nine hundred thousand million, the circumference is 2,827,433,388,233. That is π to eleven decimal places, 3.14159265359. The verse that carries it spells the digits in word-numerals, the bhūtasaṃkhyā in which “eyes” means two and “elephants” eight, read from the last word to the first.

Sources