yantra/patha/sphuta.js
स्फुट, the true Sun and Moon of the Sūrya-Siddhānta, on its own wheel and with its own sine table.
211 lines · 0 exports
The header, as the file states it
What it loads
nothing
What it exports
SS verses named in the header
- SS 1.29verseyuge sūryajñaśukrāṇāṃ khacatuṣkaradārṇavāḥ । kujārkiguruśīghrāṇāṃ bhagaṇāḥ pūrvayāyinām ।।
- SS 1.11verseprāṇādiḥ kathito mūrtastruṭyādyo amūrtasaṃjñakaḥ । ṣaḍbhiḥ prāṇairvināḍī syāttatṣaṣṭyā nāḍikā smṛtā ।।
The channels it runs in
Every function, what it calls, who calls it
27 top-level functions read from the source; the doc line is the comment above each; calls and callers are resolved across the registry’s modules by name. Line numbers are the file’s at engine 3f94072.
num/den in lowest terms: a BigInt when it is whole, else { num, den }.
A time in spandas of the turn as {num, den}: a BigInt (a whole number of spandas) or an exact rational {num, den}.
Spandas of the turn since the Kali epoch (midnight at Laṅkā) of a civil day count: exact for a whole number of days (BigInt or integer) — a BigInt when whole, else {num, den} in lowest terms; a fractional day count (a float) is put on the turn lattice, the nearest whole spanda (a BigInt).
Spandas of the turn (BigInt or {num, den}) → civil days (float; the whole part exact): τ·S/(N·R).
Fraction of a revolution of a body moving R revolutions per yuga (×perYugaDen) at τ spandas of the turn, exact: frac(R·(1811/4 + τ/(RISINGS·SPT))) as {num, den}, 0 ≤ num < den.
Mean places in degrees (sidereal, from the text's Meṣa 0) at τ spandas of the turn since the Kali epoch.
2.31-2.32: R-sine of an arc of 0…5400 minutes by the table and linear interpolation.
2.48: the sine's rate (R-sine per minute) at an arc: the tabular difference of its 225′ step ÷ 225.
R-sine of an arc of 0…5400 minutes: the table (2.31-2.32), or Mādhava's on R = 3438.
The arc in minutes of an R-sine 0…3438 (2.33).
The sine's rate at an arc of 0…5400 minutes (R-sine per minute): 2.48's tabular step, or the polynomial's derivative.
2.29-2.30: the bhuja of an arc (degrees) and the sign of its sine.
Signed R-sine of any arc in degrees, by the table.
2.29-2.45: the manda equation in degrees for a mean place and its mandocca, with the text's epicycle pair.
True Sun, true Moon, the node, the Moon's latitude, and the mean places, at τ spandas of the turn since the Kali epoch.
SS 3.9-3.10 at τ spandas of the turn: 600 librations a yuga, three-tenths of the bhuja (±27°). phaseDeg and amplitudeDeltaDeg (both 0 = the text) move the libration's phase and its greatest value (27° + δ): the paramparā's three determinations (Āryabhaṭa's zero in Kali 3600, Nīlakaṇṭha's 14°26′, Parameśvara's 15°) are applied this way by ss-tier.js through the saṃskāra record; nothing else changes