spanda/zi-compat.js
Spanda Observatory's door onto the one engine (एक-यन्त्र): the surface of ZI (the observatory's own
348 lines · 3 exports
The header, as the file states it
What it loads
- spanda/spanda/zi-compat.js
- yantra/web.jsmodule
- yantra/udaya-bija.jsmodule
- yantra/patha/kala-dvara.jsmodule
- yantra/patha/ss-graha.jsmodule
- yantra/patha/ss-udaya.jsmodule
- yantra/drk-lambana.jsmodule
- yantra/drk-udaya.jsmodule
- spanda/zi-names.jsmodule
- spanda/zi-hora.jsmodule
- yantra/meridian.jsmodule
What it exports
ZIAMENGINESS verses named in the header
- 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ā ।।
- SS 1.34versebhānāṃ aṣṭākṣivasvadritridvidvyaṣṭaśarendavaḥ । bhodayā bhagaṇaiḥ svaiḥ svairūnāḥ svasvodayā yuge ।।
- SS 1.37versevasudvyaṣṭādrirūpāṅkasaptādritithayo yuge । cāndrāḥ khāṣṭakhakhavyomakhāgnikhartuniśākarāḥ ।।
- SS 2.43versemāndaṃ karmaikaṃ arkendorbhaumādīnāṃ athocyate । śaighryaṃ māndaṃ punarmāndaṃ śaighryaṃ catvāryanukramāt ।।
- SS 2.47versesvamandabhuktisaṃśuddhā madhyabhuktirniśāpateḥ । dorjyāntarādikaṃ kṛtvā bhuktāvṛṇadhanaṃ bhavet ।।
- SS 3.9versetriṃśatkṛtyo yuge bhānāṃ cakraṃ prākparilambate । tadguṇādbhūdinairbhaktāddyugaṇādyadavāpyate ।।
The channels it runs in
Every function, what it calls, who calls it
56 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.
civil days since the Kali epoch (midnight at Laṅkā–Ujjayinī) ↔ T
The civil day holding T at longitude lonDeg: the local Kali day (BigInt) and the fraction of that civil day, as spanda of N (ZI's `dina`: N ≡ one civil day for the day's own quantities).
an engine instant (civil days since the epoch) → spanda of local civil day `ah` at longitude lonDeg (may exceed N for the next day's instants, as ZI's dm.set and nextRise did)
SS 2.38: the epicycle at a kendra from its even-end and odd-end values (kalā ×S)
SS 2.39: the manda equation (spanda) for mean m and ucca u — the text's formula on the text's table
SS 2.40-2.42: the śīghra equation (spanda) and karṇa (×S, R = 3438)
SS 1.53: the mean place of a body with B revolutions a yuga at T (spanda of the turn) — the text's mean, on this lattice
every body with its daily motion (spanda per civil day, SS 2.47) and vakrī flag
a served place (degrees, nirayaṇa) on the lattice — the same in every frame (D23a(2))
sunrise, noon, sunset of the local civil day aharLoc at D, as spanda of that day (N ≡ the civil day) — the engine's calendar on the bīja Sun (text rule: the Sun's centre on the horizon, no refraction), its sāyana place = served + the frame's A (D23, D23b(1)); in the served frame the web door's own instants
the sāyana lagna of the measured sky less A of `frame` (D23b(1)): in 'patha' the lagna moves by A_served − A_patha, the grahas do not. A gaṇanā passes its own frame, so a lagna read later is still in the gaṇanā's frame.
ZI's name: the lagna in the frame in force (ZI's older pages pass a Sun and an ayanāṃśa after D: both ignored, as before)
दृक्-लम्बन: the Moon (or a graha) from the place, on the measured sky; its place is the served one in every frame (D23a(2)) — { sp, sara, lambana, nati, hp (spanda), alt (deg), r (Earth-radii) }
Śrīpati's bhāvas from lagna and madhya-lagna (BPHS/Śrīpati; ZI's arithmetic)
── पञ्चाङ्ग · the engine's limbs in ZI's shape ─────────────────────────────────────────────────────────────────────
Newton on the lattice toward a target of f (ZI's kṣaṇa), kept for callers; rates are per civil day
AM's instant is the same turn-spanda ZI reads (fromMs → daysOfT), so ZI.grahaAt and AM.at agree to the spanda by construction
SS 4: the eclipse geometry on the given rates (kalā/day) and the Moon's latitude (kalā) — ZI/AM's lines