Skip to main content
Live Pandit Ji
LIVE

the classical texts

Tantrasangraha of Nilakantha Somayaji: Its 8 Chapters

Published 2026-11-04 | Live Pandit Ji

The Tantrasangraha is a Sanskrit manual of astronomical computation written in Kerala by Nilakantha Somayaji, whom its 1958 editor calls Nilakantha Somasutvan. According to that editor’s introduction, the author lived in the second half of the fifteenth century and the first years of the sixteenth, and the years 1465 to 1545 stand in brackets after the sentence. The same introduction gives the book about 430 stanzas in eight chapters. This page reads that edition, the one Suranad Kunjan Pillai published for the University of Kerala as number 188 of the Trivandrum Sanskrit Series, together with the short commentary, the Laghuvivrti, printed under every verse. It covers what the edition says about the author, the two day-counts that date the work, and the plan of the eight chapters. It prints no computed position and no date from the book’s rules.

Who Nilakantha Was, in Pillai’s Account

Pillai names him Kelallur Nilakantha Somasutvan, a native of Trkkantiyur in Malabar, and builds the rest of his sketch from a colophon the author wrote himself, at the end of the Ganitapada of his commentary on the Aryabhatiya. By that colophon, Nilakantha’s father was Jataveda. He learnt astronomy from Damodara, son of Paramesvara, the Paramesvara who wrote the Drigganita, and philosophy from Ravi Nampitiri. He had a younger brother named Sankara, and his patron was Alvanceri Tamprakkal, whom Pillai describes as the spiritual head of the Nampatiris of Kerala. For his dates and works Pillai sends the reader to Ullur S. Paramesvara Aiyar’s History of Kerala Literature. Somasutvan and Somayaji are two forms of one title, given to a man who has performed the soma sacrifice.

His Other Books

Pillai counts five known works: the Aryabhatiya Bhashya, Tantrasangraha, Siddhanta Darpana, Golasara and Chandracchaya Ganita. A Grahanirnaya has also been put down to him. Pillai rates the commentary on Aryabhata as the most important, and his library had already printed it, as number 185 in the same series. That commentary refers back to the Tantrasangraha in the first person, so the Tantrasangraha is the earlier of the two. The text it comments on is read on the site’s Aryabhatiya page.

One title on Pillai’s list needs a warning. The site’s Siddhanta Darpana page is about a different book with that name, written in Orissa by Samanta Chandrasekhar and printed in 1899, and that page itself points out that Nilakantha’s work of the same title is another text. Neither book is a source for the other page.

Two Phrases That Date the Work

The book opens with a single verse to Vishnu:

हे विष्णो ! निहितं कृत्स्नं जगत्त्वय्येव कारणे ।
ज्योतिषां ज्योतिषे तस्मै नमो नारायणाय ते ॥ १ ॥

It reads, roughly: O Vishnu, in you, the cause, the whole world is placed; to you, Narayana, the light of the lights, salutation. The Laghuvivrti adds a second meaning. Its note on this verse says that the first quarter, counted by its letters, gives the number of days since the Kali age began on the day the book was started, and that the finishing day is given in the same way at the end, by the words lakshmisha-nihita-dhyanaih in the last verse.

The commentary does not work the numbers out. Read with the katapayadi letter values, the system the site sets out on its argala page, each of the eight syllables of the first quarter gives one digit: ha, va, na (retroflex), na (dental), ha, ta (dental), ka, na (dental), which is 8 4 5 0 8 6 1 0. In the two conjunct syllables only the last consonant counts, and the digits are read from right to left, which gives 1,680,548. The closing words, counted the same way, give 1,680,553. The two counts are five days apart.

Pillai gives the two dates in the local calendar: day 26 of Minam and the first day of Medam in the year 676 of the Malayalam era. He then reports that Ullur S. Paramesvara Aiyar found this impossible to believe, because a work of this difficulty could not be composed in five or six days. The day-counts above are only the ones the commentary points to. They show what span Ullur doubted, and they do not settle whether the book was written in that span. Where the Kali reckoning starts is explained on the site’s kali yuga page; this page does not convert either count to a date.

The Eight Chapters

The edition’s chapters have no titles of their own. Each one ends with a colophon that says only which chapter of the Tantrasangraha’s commentary is complete, so the names below are descriptions taken from Pillai’s introduction and the edition’s Sanskrit table of contents. All eight openings and all eight colophons are in the scan, in order. Rows marked “title only” get a name and a neutral gloss.

No.SubjectWhat it coversLast verse no.
1Time and the mean planetsUnits of time, solar and lunar months, intercalary months, the days of the gods and the ancestors, the days elapsed since the Kali age began, and the mean places of the planetsends on a half-stanza
2The true planetsThe manda and shighra corrections, sines from arcs and arcs from sines, the true Sun and Moon, local sunrise, and the true places of Mars and the others80
3The gnomon and its shadowSetting up the gnomon, finding the directions, the equinoctial shadow, latitude, the rising of the signs at one's own place, and long runs of worked problems118
4The lunar eclipse (title only)How the lunar eclipse is computed52
5The solar eclipse (title only)How the solar eclipse is computed, with parallaxends on a half-stanza
6VyatipataThe moment when the Sun and the Moon stand at equal declination, and how to find whether it occursends on a half-stanza
7The two drik correctionsThe latitudes of the Moon and the planets and the two corrections applied for their rising and settingends on a half-stanza
8The Moon's lit part and its hornsHow much of the Moon is lit (sitamana) and how high its horns stand (shringonnati), drawn out in a diagram, with the closing verse of the bookends on a half-stanza

The edition numbers half-stanzas as well as whole ones; chapter 1, for example, has a verse 39 and a half. The scan’s text recognition turns the half sign into a stray digit, so the last column gives a number only for chapters 2, 3 and 4, which end on a whole verse that reads cleanly. For the same reason the page adds up no chapter totals and keeps Pillai’s round figure of about 430 for the book. Pillai calls chapter 3 the longest, and in the scan it fills about a third of the text and commentary together.

How the Commentary Joins the Chapters

Sankara Variar starts most chapters with the same two-part sentence: this has now been shown, and next comes that. Put in order, those openings read as a plan of the book:

  • Chapter 2: the mean motion has been shown; now the true place.
  • Chapter 3: the true places of the Sun, the Moon and the star-planets have been shown; now the Sun's shadow.
  • Chapter 4: the Sun's shadow has been shown; now the eclipses, the Moon's first.
  • Chapter 6: the Sun and the Moon as they are seen have been dealt with; now their vyatipata, which arises from equal declination.
  • Chapter 7: vyatipata has been shown; now the two drik corrections.
  • Chapter 8: the two drik corrections have been shown; now the Moon's lit part and the elevation of its horns.

Chapter 5 is the one that opens differently, going straight to the correction for parallax. Pillai’s summary groups chapters 6 and 7 together under vyatipata, while the commentary’s opening of chapter 7 announces the two drik corrections, and the table follows the commentary.

Chapter 3: Five Quantities, Ten Problems

Pillai notes that the shadow chapter carries many worked problems, and the clearest run of them starts at verse 60. That verse names five quantities of the Sun at a given moment: shanku (the gnomon, standing for the Sun's height); nata (the zenith distance); kranti (the declination); digagra (the amplitude); aksha (the latitude). Knowing any three, the verse says, the other two can be found, and it counts the ways as ten. The count is simple arithmetic: there are 10 ways to choose which two of five are unknown. The commentary closes the run after verses 92 to 94, saying the tenfold set has been shown. The site’s zero shadow day page treats the noon shadow with a modern ephemeris and none of these rules.

Where Madhava Is Named

The verses name Madhava twice, both times in chapter 2. At verse 15 the text gives a way of taking the sine and the arc, credited to Madhava, with a finer method also given by him in the half-verse that follows; the commentary there calls Madhava the foremost of those who know the sphere. At verse 44 it gives the manda hypotenuse worked out once, without repeating the calculation, as Madhava taught. That is what the verses state, and this page goes no further with it. Pillai’s introduction lists the kinds of mathematics he finds in the book, among them algebra, geometry, series, ratio and proportion, permutation and combination, and continued fractions. He also takes from the closing verse’s commentary that the author did not set out the reasoning behind his rules, so this edition offers the rules without their proofs.

Chapters 4 and 5, Listed by Title Only

Chapters 4 (the lunar eclipse) and 5 (the solar eclipse) are given here by their subject alone. Their rules are not relayed, and the site prints no eclipse dates and no statement of where an eclipse can be seen, from this book or any other. Pillai mentions that both chapters, like chapter 8, describe diagrams; that is all this page takes from them.

Vyatipata and the Moon’s Horns

Chapter 6 takes the moment when the Sun and the Moon stand at equal declination, its opening verse framing it as the declination of one falling while the other’s rises. The site’s kranti samya page lists those moments from a modern ephemeris, under the Surya Siddhanta’s name for them, and does not use this book. The closing verses of chapter 6, on what to do and avoid at such a time, are left in the book. Chapter 8 works out how much of the Moon is lit and how high its horns stand, and draws the result; its last verse is the one whose words give the finishing day-count.

Beside the Surya Siddhanta

The order of the opening chapters will look familiar to anyone who has read the site’s Surya Siddhanta page. That book’s first five chapters, out of 14, run in the same sequence: mean motions, true places, the gnomon and its shadow, then the two eclipses. Its chapter 11 covers the equal-declination moments of chapter 6 here, and its chapter 10 the Moon’s horns of chapter 8. The match is one of subjects and order only; this page does not compare the two books’ numbers.

The Edition Read Here

The copy is the archive.org item exxd-tantrasangraha-commentary-laghuvivrti-shankara-var. Its title page names Suranad Kunjan Pillai, Honorary Director of the University Manuscripts Library at Trivandrum, as publisher, and the Sree Rama Vilasam Press at Quilon as printer; his introduction is signed at Trivandrum in 1958. Apart from that introduction, the book is Sanskrit throughout, with no translation. Pillai knows of two commentaries on the Tantrasangraha, one by a Nampitiri of Trpparangottu and the Laghuvivrti printed here, which he gives to Sankara Variar of Trkkutaveli; Variar’s opening stanza salutes Alvanceri Tamprakkal and Nilakantha. The edition was prepared from ten manuscripts, one a paper transcript in Devanagari and the rest palm leaves in Malayalam script. The recognised text of the scan is rough in many places, so the only Sanskrit quoted above is the opening verse, checked to come through cleanly.

Related Pages

Other texts the site describes are listed on the three skandhas of jyotish page, where the Tantrasangraha belongs with the siddhanta books. Another book from Kerala on the site is the Prashna Marga, though it deals with horary questions rather than computation. For a mathematics textbook from the same broad tradition, see the Lilavati. In Hindi: तन्त्रसंग्रह, नीलकण्ठ सोमयाजी का ग्रंथ.

How Much of the Moon Is Lit Tonight?

Chapter 8 computes the lit part of the Moon by hand. The site’s moon age calendar gives the Moon’s age and lit percentage for every evening through 2027, worked from a modern ephemeris rather than from Nilakantha’s rules.

See the Moon Age Calendar