yantra/patha/parahita-madhyama.js
मध्यम of the Parahita karaṇa: Āryabhaṭa's integer mean motions, the
125 lines · 0 exports
The header, as the file states it
What it loads
nothing
What it exports
SS verses named in the header
- SS 14.19versesūtakādiparicchedo dinamāsābdapāstathā । madhyamā grahabhuktistu sāvanenaiva gṛhyate ।।
- SS 1.34versebhānāṃ aṣṭākṣivasvadritridvidvyaṣṭaśarendavaḥ । bhodayā bhagaṇaiḥ svaiḥ svairūnāḥ svasvodayā yuge ।।
The channels it runs in
Every function, what it calls, who calls it
13 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.
A time in spandas of the turn: a BigInt (whole spandas) or an exact rational {num, den}.
Civil days since the Kali epoch → spandas of the turn (the engine's clock): exact {num, den} for a whole number of days; a fractional (float) day count on the turn lattice, the nearest whole spanda.
Mean longitude at τ spandas of the turn since the Kali epoch, as an exact rational number of arcseconds in [0, 1,296,000): frac(R·(¾·Y + days)/Y), days = τ·S/(N·R) on the engine's clock.
Kali years elapsed minus 3179 minus 444: the n of the Śakābda rule, as an exact rational.
Śakābda minutes to SUBTRACT (exact rational); `parameshvara` applies his 1/5 and 1/12. The Sun gets none.
The Śakābda rate of a body as revolutions per yuga (exact rational): 200 × mul / div, times Parameśvara's fraction.
The Parahita place after the Śakābda-saṃskāra: exact rational arcseconds in [0, 1,296,000).
Arcseconds (rational) → { degrees, minutes (float, fractional) } for display and for minute-level comparison.
Offset, in days, from `ahargana` (a whole Kali day's start) to the nearest MEAN syzygy of the given kind ('new' | 'full'). Exact, then floated.