Numbers in Sanskrit Verse
This site reads numbers that are hidden in words. It takes passages from Sanskrit and Malayalam texts on astronomy and mathematics, mostly from Kerala, and decodes each one. For every passage it shows the text, the digit of each letter, the number they make, what that number measures, and an English translation. Five short animations show whole texts turning into numbers and charts.
Indian astronomers and mathematicians wrote long numbers as words. In the system called kaṭapayādi, each consonant stands for a digit. A phrase can therefore mean something in the ordinary sense and also carry a number, such as a planet's position or a count of days. Its earliest securely dated use is in a Kerala astronomical work of 683 CE, and Kerala astronomers and mathematicians used it widely after that. 1
Animations
Each animation works through one passage slowly, then decodes a whole text and shows what its numbers mean.
- 248 sentences, one Moon: the Moon's place for every day of a 248-day cycle, its speed, and a zodiac spiral.
- Mars turns back: fifteen 780-day cycles of Mars, with its backward loops and the days the text names.
- Days since the Kali era: phrases that are dates, on a timeline of about 1,500 years.
- A circle and a curve: π from one line of verse, and Mādhava's sine series built correction by correction.
- Fractions and the circle: Malayalam names for tiny fractions, and two rules for π.
How the letters become digits
The name comes from the letters that start each group: ka, ṭa, pa and ya each stand for 1. 1
| Digit | ka group | ṭa group | pa group | ya group |
|---|---|---|---|---|
| 1 | क | ट | प | य |
| 2 | ख | ठ | फ | र |
| 3 | ग | ड | ब | ल |
| 4 | घ | ढ | भ | व |
| 5 | ङ | ण | म | श |
| 6 | च | त | ष | |
| 7 | छ | थ | स | |
| 8 | ज | द | ह | |
| 9 | झ | ध | ||
| 0 | ञ | न |
Three further rules complete the system in its usual form. A vowel sign attached to a consonant adds no digit, and a vowel standing alone counts as 0. In a cluster of consonants, only the last one before the vowel counts. The digits are then read from right to left, so the last syllable gives the first digit of the number. 1
A 1976 edition of the Siddhāntadarpaṇa gives the position of Mars as the word रघुर्वनस्थो. Its syllables give 2, 4, 4, 0 and 7. Read from right to left, they make 70442: 7 signs, 4 degrees and 42 arcminutes, where one sign is 30 degrees. The edition prints the same value. 2
A phrase can also name a date. The final verse of the Nārāyaṇīyam, a 16th-century devotional poem, ends with आयुरारोग्यसौख्यम्, "long life, health and happiness". The same words give 1,712,210, a count of days from the start of the Kali era that falls on 8 December 1586, the date associated with the poem's completion. 1
About this study
This site records a study of kaṭapayādi passages in astronomy and mathematics, with emphasis on Kerala sources. AI agents did most of the reading, decoding and checking under the direction of Sankaranarayanan Viswanathan. They read Sanskrit and Malayalam texts in printed editions, manuscript scans and published studies. How this was done describes the method and its limits.
The study made no large discovery. It found that published values agree with their source words in most places. It also found a small number of printing errors in modern editions. For example, three planetary positions printed in a 1962 edition of the Vākyakaraṇa do not match the words beside them, and the edition's own errata do not list them. Every result names its source page, its decoding rule and the earlier studies that already explain it. 3 4
Read from here
- How the number system works works through one example step by step.
- Works that use kaṭapayādi lists the works known to this study, by subject and language.
- What we have found gives the results. The other reports cover edition audits, calculus texts and the wider source search.
- Source notes give the words, page references, comparisons and limits behind each result.
- How claims are checked sets out the evidence standard. The glossary explains terms.
The linked numerical records let a reader repeat a calculation. They do not replace the page image when the spelling of a word is in question. 5
References
- 1peer-reviewed S. R. Sarma, The Kaṭapayādi system of numerical notation and its spread outside Kerala, Revue d'histoire des mathématiques 18 (2012) 37–66 Saved as research/sources/chr-sarma2012-rhm.pdf (SHA-256 43bb67b2…). Read: p. 40 (Nārāyaṇīyam), p. 44 and n. 20 (Kali-ahargaṇa definition and the 2010 example), p. 46 and n. 23 (Sūryadeva).
- 2primary K.V.Sarma, Siddhantadarpana of Nilakantha with autocommentary andanonymousappendices,1976 Full90page scan acquired; introductionxii/PDF16 andAppendixI46/PDF78 verify notation,epoch,word,fieldformat andpublishedMars value. NativeTXT preserved; separateArchiveOCR labelled. Knownpublishedcontrol,notnovel.
- 3primary Executed decoding, errata layer and neighbour check for all rows Written by research/tools/vka-compare.mjs; checked by vka-compare.test.mjs. The neighbour check is a smoothness comparison with the table's own printed neighbours, not a modern model. Statuses: agrees, resolved by errata, angle or correction differs with the favoured side.
- 4primary Executed comparison, decoding and final layer for the 1973 lunar table Written by research/tools/sca-compare.mjs; checked by sca-compare.test.mjs. Decoder sadratnamala-3.3-devanagari-v1 with ḷa = 9.
- 5primary Executed numerical results and source provenance Bundled numerical artifact. Exact inputs and modules are under assets/research with a SHA-256 manifest. Canonical replay also requires the recorded source PDFs and metadata. Not external scholarship or novelty evidence.