भारत · ग्रहगणित
स्थान उज्जयिनी Ujjayinī · change it on a tool⌕ search the कोश ⌘Kप्रहर — · —:—:—ours, from sunriseउज्जयिनी —:—:—UTC + λ/15 h, λ = 75.7682° E (D13)IST Error −26.9 minlocal mean time − IST = 4λ − 330 min (K12)engine 3f94072the site ↗

yantra/patha/index.js

शास्त्र-पाठ टियर (the text tier)

114 lines · 33 exports

लेख · the header

The header, as the file states it

shastra-patha/index.js — शास्त्र-पाठ टियर (the text tier) ========================================================== The Sūrya-Siddhānta, chapters 1–14, by the text's own arithmetic: its 24 R-sines on R = 3438 with the text's linear interpolation (2.17-2.33), the greatest declination's R-sine 1397 (2.28), its integers decoded from the verse words (corpus/surya-siddhanta/numbers.json — every bhūtasaṅkhyā word, with the edition's misprints quarantined in `forbidden`), exact BigInt / rational arithmetic on the spanda lattice. No spherical trigonometry on the text path; no modern ephemeris, no ΔT table, no IERS product, no foreign series — kala-dvara.test.js [FRAME] gates this at test time. Vendored 2026-10-20 from the same author's bharat-ephemeris-offline (its pure text tier only — nothing from its dṛk / measured / fitted layers). Tests travel with the files: `node --test shastra-patha/*.test.js`. sphuta.js SS 1-3 true Sun and Moon, the sine table, the ayanāṃśa libration (3.9-3.12) ss-graha.js SS 1-2,7 the five tārāgrahas: the four-step (2.43-2.45), conjunctions (ch.7) ss-udaya.js SS 2-3,9 rising times, lagna, cara, kālāṃśa, dṛkkarma (3.42-3.50, 7.8-7.10, 9.5) ss-chaya.js SS 3 tripraśna: the shadow chain (direction, place, time) ss-grahana.js SS 4-6 lunar and solar eclipses with the text's lambana / nati (5.1-5.17), valana (4.24-4.25) ss-parilekha.js SS 6 the eclipse drawing (parilekha) ss-drishya.js SS 9-10 heliacal rising and setting, the Moon's horns (śṛṅgonnati) ss-chakra.js SS 1-2,4,7 the cycles of the yutis and the pāta-gates (eclipses, transits), from the integers [discovery 2026-10-28] ss-ahargana.js SS 1 ahargaṇa from the verse rule (1.48-1.53), SS 12.78-12.79 ss-kalpa.js SS 1 cosmic time, kalpa, sṛṣṭi, the Kali day-count (1.11-1.24, 1.45-1.47) dhruva.js SS 12-13 the celestial pole and the sphere (12.72-12.73, 13.4), obliquity 1397/3438 panchanga.js SS 2,14 tithi, nakṣatra, yoga, karaṇa, vāra; sunrise on the turn; lagna by 3.42 utsava.js SS 14 the parts of the year, festivals (festival rules are marked [unverified]) spanda-ganita.js the exact lattice, Mādhava's sine on R = 3437′44″48‴ (kaṭapayādi-decoded coefficients) kala-dvara.js SS 1 the door between civil count and the star-wheel (1.34, 1.39); the calendar ↔ day number katapayadi.js the kaṭapayādi cipher (Sadratnamālā rule) and Āryabhaṭa's letter-numerals parahita-madhyama.js Āryabhaṭīya Gītikā 3 integers, Śakābda-saṃskāra, Parameśvara's fractions (Jyotirmīmāṃsā) candravakya.js the 248 candravākyas regenerated from the canon's own integers (Vararuci / Mādhava) gurutva-sarani.js the owner's gravity from the text's seeds, bīja on the starting states, tabulated (1850–2150) udaya-bija.js the frame: the text's ε, ayanāṃśa and star-rotation with measured bīja → lagna, sunrise
आवश्यक · requires

What it loads

required by
nothing in the registry
निर्यात · exports

What it exports

SphutaSSGrahaSSUdayaSSChayaSSGrahanaSSParilekhaSSDrishyaSSChakraSSAharganaSSKalpaDhruvaPanchangaUtsavaSpandaGanitaKalaDvaraKatapayadiParahitaMadhyamaCandravakyaGurutvagrahasUdayalagnasunRiseSetPROVENANCEtierdefaultseedssourceforeignInputsmodulesconstantsrecordvendoredFrom
पाठ · the verses it cites

SS verses named in the header

  • SS 12.78verse
    mandādadhaḥ krameṇa syuścaturthā divasādhipāḥ । varṣādhipatayastadvattṛtīyāśca prakīrtitāḥ ।।
नलिका · channels

The channels it runs in

not on a channel
कार्य · the functions

Every function, what it calls, who calls it

6 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(x)lines 56–56
calls nothing in the registry
called by lagna, sunRiseSet
dhruva(t)lines 58–58

The Sun for the frame's sunrise: the gurutva-sāraṇī inside its window, the text outside it.

calls nothing in the registry
called by sunForUdaya
sunForUdaya(t)lines 59–59
called by nothing in the registry
lagna(ahargana, lat, lonEast)lines 62–62exported

Lagna and madhya-lagna (nirayaṇa) at a civil ahargaṇa, on the udaya-bīja frame (the text's ε, ayanāṃśa and star-rotation with measured bīja). The text's own lagna by rising times is SSUdaya.lagna.

called by nothing in the registry

Sunrise and sunset (civil ahargaṇa) of the civil day starting at local midnight `dayStart`; convention 'text' (the Sun's centre on the true horizon) or 'refracted' (upper limb, 34′ refraction).

called by nothing in the registry
grahas(ahargana, opts = {})lines 74–74exported

The nine grahas at a civil ahargaṇa (days since Laṅkā midnight at the Kali start). tier 'gurutva' (default): the owner's gravity integrated from the text's seeds with the bīja of the starting states (the gurutva-sāraṇī, 1850–2150); outside that window the text answers, marked `tier: 'text'`. tier 'text': the Sūrya-Siddhānta as written (Sphuta, SSGraha). Each graha: { lam, beta } in degrees (niraya

calls nothing in the registry
called by nothing in the registry