Gaṇita & Jyotiṣa

Ropes for building altars, a dot for nothing, a verse that hides π, and infinite series in fifteenth-century Kerala. The real achievements of Indian mathematics and astronomy — stated precisely, without inflation.

Every time you write “2026” you use an idea that took shape in India: nine digits and a zero, each worth more by its place. That idea came out of a tradition of gaṇita, “calculation”, which grew up beside jyotiṣa, the science of the lights of heaven. The Map of the Śāstras gave them one paragraph. This page walks the line from the Vedic altar to the Kerala school — and is honest about the one part of jyotiṣa that is not science.

Two sciences, one limb

Jyotiṣa began as one of the six Vedāṅgas (see Layers of a Veda): the knowledge needed to time a rite. Later writers divided it into three “branches”: gaṇita or siddhānta (mathematical astronomy), saṃhitā (omens and portents) and horā (horoscopy). Mathematics proper — arithmetic, algebra, geometry — was usually written up as chapters inside astronomical treatises, because astronomers needed it.

Tradition’s view The Sūrya Siddhānta presents itself as revealed by the Sun to the asura Maya at the end of the Kṛta age; the science is as old as the cosmos it measures. Historians see a datable story of borrowing and invention, set out below. Both can be held at once, but they answer different questions.

  1. c. 800–200 BCEThe ŚulbasūtrasRules for laying out fire-altars with cords: the diagonal theorem, √2, squaring the circle approximately.
  2. Last centuries BCEVedāṅga Jyotiṣa; PiṅgalaA five-year ritual calendar attributed to Lagadha; Piṅgala’s counting of metres.
  3. 499 CEĀryabhaṭa’s Āryabhaṭīya121 verses of mathematics and astronomy, written in Kusumapura (Patna) when he was 23.
  4. c. 550VarāhamihiraThe Pañcasiddhāntikā sums up five older astronomies, some showing Greek influence.
  5. 628BrahmaguptaThe Brāhmasphuṭasiddhānta: rules for zero and negative numbers.
  6. 1150Bhāskara IIThe Siddhāntaśiromaṇi, including the Līlāvatī and Bījagaṇita.
  7. c. 1340–1550The Kerala schoolMādhava’s infinite series; Nīlakaṇṭha’s Tantrasaṅgraha (c. 1500); the Malayalam Yuktibhāṣā.

Altars and cords: the Śulbasūtras

Vedic fire-altars had to be built to exact shapes and areas — a falcon of bricks, a square that must be doubled without changing its form. The Śulbasūtras, “rules of the cord”, attached to the ritual manuals of Baudhāyana, Āpastamba, Kātyāyana and Mānava, give the geometry. Baudhāyana’s is the oldest:

दीर्घचतुरस्रस्याक्ष्णयारज्जुः पार्श्वमानी तिर्यङ्मानी च यत्पृथग्भूते कुरुतस्तदुभयं करोति । dīrgha-caturasrasyākṣṇayā-rajjuḥ pārśvamānī tiryaṅmānī ca yat pṛthag-bhūte kurutas tad ubhayaṃ karoti The diagonal cord of a rectangle makes both of what the length-side and the cross-side make separately. Baudhāyana Śulbasūtra, chapter 1

That is, the square on the diagonal equals the two squares on the sides — what Europe calls Pythagoras’ theorem, stated here as a builder’s rule, without a proof. Baudhāyana also gives √2 as 1 + 1/3 + 1/(3·4) − 1/(3·4·34), correct to five decimal places. Scholars dispute the dates (c. 800–200 BCE is the usual range), and whether Mesopotamian builders knew the same rule earlier is a separate question; what is clear is that these are the oldest geometry texts in Sanskrit.

Counting metres: Piṅgala

Another Vedāṅga, metre, led to combinatorics. Piṅgala’s Chandaḥśāstra (perhaps the last centuries BCE) asks how many patterns of light and heavy syllables a line can have, and gives procedures for listing them and finding the position of any pattern — in effect a binary code. Later commentators drew the triangle of numbers Europe calls Pascal’s (explicitly by Halāyudha, 10th century), and prosodists counting metres by beats found the sequence 1, 2, 3, 5, 8, 13… (Virahāṅka, Gopāla and Hemacandra, before Fibonacci’s 1202 book). Poetry, in this tradition, taught people to count.

Nine digits and a dot

Decimal place value with a zero is India’s best-known gift, and its history is still being written. Some milestones on which historians agree:

The Bakhshali manuscript, a birch-bark arithmetic dug up near Peshawar in 1881, uses a dot for zero. In 2017 the Bodleian Library announced radiocarbon results placing three of its leaves roughly in the 3rd–4th, 7th–8th and 9th–10th centuries, and hailed “the oldest zero”. Kim Plofker and four colleagues replied that a manuscript is copied at one time, so the latest leaf dates the writing — which fits earlier estimates from script and content. The debate is open; treat headlines about “the earliest zero” with care. From India the system reached Baghdad (al-Khwārizmī, c. 825) and then Europe, where it is still mis-named “Arabic numerals”.

Āryabhaṭa: a verse that hides π

Āryabhaṭa’s Āryabhaṭīya is short and dense: a chapter of parameters, one of mathematics, one of time-reckoning and one on the sphere. He tells us he wrote it when 3,600 years of the Kali age had passed and he was twenty-three — that is, in 499 CE. Here is his value of the circle:

चतुरधिकं शतमष्टगुणं द्वाषष्टिस्तथा सहस्राणाम् ।
अयुतद्वयविष्कम्भस्यासन्नो वृत्तपरिणाहः ॥
caturadhikaṃ śatam aṣṭa-guṇaṃ dvāṣaṣṭis tathā sahasrāṇām,
ayuta-dvaya-viṣkambhasyāsanno vṛtta-pariṇāhaḥ
A hundred plus four, multiplied by eight, and sixty-two thousand more: this is the approximate circumference of a circle whose diameter is two myriads. Āryabhaṭīya, Gaṇitapāda 10

Work it through, one step at a time:

The same book gives a table of 24 jyā (sine) differences at intervals of 3¾°, the ancestor of every later Indian trigonometry; the kuṭṭaka or “pulveriser” for solving equations like ax − by = c in whole numbers; and a startling astronomical claim — that the stars stand still and the earth turns:

अनुलोमगतिर्नौस्थः पश्यत्यचलं विलोमगं यद्वत् ।
अचलानि भानि तद्वत् समपश्चिमगानि लङ्कायाम् ॥
anuloma-gatir nausthaḥ paśyaty acalaṃ vilomagaṃ yadvat,
acalāni bhāni tadvat sama-paścima-gāni laṅkāyām
Just as a man in a boat moving forward sees the motionless shore moving backward, so at Laṅkā the motionless stars are seen moving due west. Āryabhaṭīya, Golapāda 9

(“Laṅkā” here is a reference point on the equator, not Sri Lanka.) Most later astronomers, Brahmagupta among them, rejected the rotating earth, and some commentators reinterpreted the verse. Āryabhaṭa’s system was still earth-centred: the planets go round the earth.

From Varāhamihira to Bhāskara

Varāhamihira of Ujjain (6th century) wrote the Pañcasiddhāntikā, a digest of five astronomical systems current in his day. Two of them, the Romaka and Pauliśa, carry clear marks of Greek astronomy, and Indian astronomy of this period is best understood as a creative reworking of ideas that travelled along the trade routes. Varāhamihira also wrote on omens (Bṛhatsaṃhitā) and horoscopy (Bṛhajjātaka) — one person, three branches.

Bhāskara II (born 1114) completed his Siddhāntaśiromaṇi in 1150. Its arithmetic, the Līlāvatī, poses problems in verse to a “fawn-eyed girl”, and was taught for centuries; its algebra, the Bījagaṇita, perfects the cakravāla (“cyclic”) method, building on Jayadeva and Brahmagupta, for equations like 61x² + 1 = y², whose smallest solution has x = 226,153,980. Fermat set the same equation as a challenge in 1657. Later legend The story that Līlāvatī was Bhāskara’s daughter, whose wedding hour was lost to a pearl falling into a water-clock, is first told centuries later and is not in the book.

The Kerala school

Between about 1350 and 1550, in a cluster of Brahmin households in central Kerala, many near the Nīlā (Bhāratappuḻa) river, a line of teachers and students did something remarkable. Mādhava of Saṅgamagrāma (c. 1340–1425) found infinite series for the sine, cosine and arctangent, and so for π. None of his own writings on them survive; we know them from his successors, who quote verses like this:

व्यासे वारिधिनिहते रूपहृते व्याससागराभिहते ।
त्रिशरादिविषमसङ्ख्याभक्तमृणं स्वं पृथक् क्रमात् कुर्यात् ॥
vyāse vāridhi-nihate rūpa-hṛte vyāsa-sāgarābhihate,
tri-śarādi-viṣama-saṅkhyā-bhaktam ṛṇaṃ svaṃ pṛthak kramāt kuryāt
Multiply the diameter by four and divide by one. Then take the diameter times four, divide it in turn by the odd numbers three, five and so on, and subtract and add the results one after another. Verse attributed to Mādhava, quoted in the Kerala commentaries (e.g. Śaṅkara Vāriyar)

In modern notation: circumference = 4D(1 − 1/3 + 1/5 − 1/7 + …), the series Europe credits to Gregory and Leibniz in the 1670s. (“Ocean” means four, for the four oceans; “arrow” means five, for Kāma’s five arrows — numbers in verse were coded as words.) Because the series converges slowly, the Kerala mathematicians also worked out correction terms for where you stop, and computed π to eleven decimal places.

Nīlakaṇṭha Somayājī (1444–1544), in his Tantrasaṅgraha (c. 1500), revised the planetary model so that Mercury, Venus, Mars, Jupiter and Saturn circle the sun while the sun circles the earth — a scheme like Tycho Brahe’s, a century earlier. And Jyeṣṭhadeva’s Yuktibhāṣā (c. 1530) is the rare thing: a textbook of upapatti, demonstrations, written not in Sanskrit but in Malayalam, explaining why the series work.

Did this knowledge reach Europe? Here historians must be careful, and three positions are worth knowing:

George Gheverghese Joseph, Dennis Almeida and others point out that Jesuit missionaries were active around Kochi and Thrissur from the 16th century, studied local languages and calendars, and sent reports to Europe, where the same series appeared within about a century. Motive, means and timing were all present.

Tamil skies: the vākya almanacs

The Tamil tradition prized calculation as highly as the Sanskrit one. Tiruvaḷḷuvar puts it in a single couplet:

எண்ணென்ப ஏனை எழுத்தென்ப இவ்விரண்டும்
கண்ணென்ப வாழும் உயிர்க்கு.
eṇ eṉpa ēṉai eḻuttu eṉpa iv-viraṇṭum
kaṇ eṉpa vāḻum uyirkku
Numbers, they say, and letters, they say — these two are the eyes of all who live. Tirukkuṟaḷ 392

In South India astronomy was carried less by new treatises than by working almanac-makers. The vākya system — “sentences” — encodes the moon’s and planets’ positions in short memorised phrases, so that a calculator needs only addition and a good memory. It was developed in Kerala and Tamil Nadu (the Vākyakaraṇa is usually dated to the 13th century) and still underlies the traditional Tamil vākya pañcāṅkam. In the 1760s the French astronomer Guillaume Le Gentil, stranded in Pondicherry by war, recorded how Tamil astronomers computed eclipses by these methods, and found them practical and impressively accurate. Today many Tamil almanacs, in India and Malaysia alike, follow either this vākya reckoning or the modern-calculation tirukkaṇita one — which is why temples sometimes keep a festival a day apart.

The calendar link

All this mathematics lands, every morning, on your temple’s wall. The pañcāṅga’s five limbs are astronomical quantities: a tithi ends each time the moon gains another 12° on the sun; a nakṣatra is the moon’s place among 27 segments of 13°20′. Computing them for a given town needs exactly the true-longitude methods of the siddhāntas. How the almanac works, and why festival dates move, is explained on The Panchanga; the great cycles of yugas and kalpas are on Time & Cosmology.

Horoscopy, honestly

Horā, the casting of birth charts, is a different kind of thing. Its core — twelve signs, planetary “houses”, the ascendant — came into India from the Hellenistic world: the Yavanajātaka (“Horoscopy of the Greeks”) is a Sanskrit version of a Greek-language work, and horā itself is the Greek hōra, “hour”. Indian astrologers then built a rich system of their own, joined to the older Indian nakṣatras.

Astronomy and astrology are not the same claim

Mathematical astronomy makes predictions that can be checked — and Indian eclipse calculations were checked, and worked. Horoscopy claims that the sky at birth shapes a life. When that claim has been tested under controlled conditions, astrologers have not done better than chance: in Shawn Carlson’s double-blind study (Nature, 1985), and in a 2009 Indian study led by the astrophysicist Jayant Narlikar, in which astrologers could not tell the charts of gifted children from those of children with intellectual disabilities. Many Hindus consult a horoscope for marriages and beginnings, as a matter of custom and faith. That is their right; it is simply not the same thing as Āryabhaṭa’s π. Practice varies

Questions

Did India invent zero?

India developed the decimal place-value system with a zero digit and, with Brahmagupta in 628, the first rules for zero as a number. Other cultures had placeholder signs — Babylonian scribes, and the Maya independently — but it is the Indian system that the world now uses. The exact date of its first appearance is still debated.

Did the Vedas contain calculus?

No. The Vedic texts contain geometry for altars and a ritual calendar. The infinite series that are the nearest Indian approach to calculus belong to the Kerala school of the 14th–16th centuries — a genuine achievement that needs no exaggeration. See Dharma & Modern Thought.

Can I read these texts in English?

Yes. The Āryabhaṭīya, Tantrasaṅgraha and Yuktibhāṣā all have modern scholarly translations with commentary (see the sources below), and Plofker’s survey is readable without advanced mathematics.

Check your knowledge:

Quick check

What value does Āryabhaṭa’s verse give for the ratio of circumference to diameter?

He chose a diameter of two ayutas (20,000) and called the result āsanna, “near”.

The Yuktibhāṣā, with its demonstrations of the Kerala series, was written in…

Jyeṣṭhadeva wrote it in Malayalam, around 1530.

Where are the oldest dated zeros carved in stone?

The Sambor (683 CE) and Kedukan Bukit (604 Śaka) inscriptions, both dated in the Indian Śaka era.

Which branch of jyotiṣa came largely from Hellenistic sources?

Even the word horā is the Greek hōra.

॥ Pause and reflect

  1. Āryabhaṭa called his π “approximate”. Why might honesty about limits make a science more trustworthy, not less?
  2. Kerala’s mathematicians are often celebrated mainly for being “before Europe”. What would it mean to admire them on their own terms?
  3. Do you consult a horoscope, or does your family? How do you hold that alongside what you know of astronomy?

Your notes are saved privately in this browser.

Key terms on this page

Sources & further reading