yantra/patha/kala-mana.js
काल-मान: the Sūrya-Siddhānta's time-measures as exact rationals, set beside the owner's own derived
221 lines · 0 exports
The header, as the file states it
What it loads
What it exports
SS verses named in the header
none in the registry
The channels it runs in
Every function, what it calls, who calls it
16 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.
An exact rational num/den as a decimal string with `places` digits after the point (BigInt long division).
The text's time-measures as exact rationals (days = num/den), each with a 12-place decimal.
The same measures from the owner's own derived series (SiddhantaTier.bhaganas(): periodDays of the Earth, the Moon, the Moon's apogee and node, fitted by the owner). Returns null when the tier is not loaded.
Mean days between adhimāsas for a year and a synodic month: one extra lunation per (lunations − 12·years) count.
काल-मान table: each measure, the text's exact value, the own series' value, and text − own in seconds.
The year comparison. Gregorian and Julian are definitions (calendar rules), not measurements; the own tropical year follows from its sidereal year and its own precession rate (the ayanāṃśa rate of SiddhantaTier).
Civil days since midnight at Laṅkā at the Kali epoch (the site rule: t = jd − 588465.5 + MERIDIAN_DEG/360, D13).
The text's mean elongation (Moon − Sun, degrees) at jd: frac(ahargaṇa · lunations / civil days) · 360.
The text's mean (madhyama) adhimāsas whose completion falls in [jd0, jd1): the k-th completes at ahargaṇa k·D/A exactly (D civil days, A adhimāsas per mahāyuga); the day part is exact BigInt, the fraction a double. Each { k, jd, ahargana:{ days, fraction:{num, den} } }. This is the text's mean accrual, not a civil adhika month.
── month naming ──────────────────────────────────────────────────────────────────────────────────────────────────
Pūrṇimānta naming from the amānta month and the pakṣa (pure: no extra tier call). A pūrṇimānta month runs full moon → full moon; its kṛṣṇa pakṣa comes first and carries the name of the NEXT amānta month; the śukla pakṣa shares the amānta name; an adhika month is kept whole (new moon → new moon) between the two halves of the nija month [the standard North-Indian convention; no local text states it]
The display label of a month: adhika → "अधिक X (पुरुषोत्तम / मल मास)", kṣaya → "X (क्षय मास · Y लुप्त)".
Rows of the generated table (kala-mana-data.js) whose month overlaps [jd0, jd1).
The next n adhika months after jd from the generated table (n default 3).
A signed time difference in seconds as readable Hindi text (s / मिनट / घंटे / दिन).