yantra/purnanka-siddhanta-advanced.js
प्रमाण: पाठ SS ch. 3–14 (ayanāṃśa 3.9–12, eclipses ch. 4–6, pāta ch. 11, udayāsta ch. 9, the yogatārās ch. 8, saṅkrānti) · गणित
530 lines · 16 exports
The header, as the file states it
What it loads
What it exports
computeAyanamshaSuryaSiddhantaTrepidationcomputeAyanamshaSuryaSiddhantaLinearcomputeAyanamshaLahiricomputeAyanamshasayanaToNirayananirayanaToSayanacomputeBimbamanaArcminevaluateLunarEclipseevaluateSolarEclipseevaluatePataKALAMSHASevaluateHeliacalVisibilitySS_YOGOTARA_CATALOGcheckRohiniShakataBhedaLUNAR_MONTH_NAMESevaluateLunarMonthStatusSS verses named in the header
- SS 3.9versetriṃśatkṛtyo yuge bhānāṃ cakraṃ prākparilambate । tadguṇādbhūdinairbhaktāddyugaṇādyadavāpyate ।।
- SS 3.10versetaddostrighnā daśāptāṃśā vijñeyā ayanābhidhāḥ । tatsaṃskṛtādgrahātkrānticchāyācaradalādikam ।।
- SS 3.11versesphuṭaṃ dṛktulyatāṃ gacchedayane viṣuvadvaye । prākcakraṃ calitaṃ hīne chāyārkātkaraṇāgate ।।
- SS 3.12verseantarāṃśairathāvṛtya paścāccheṣaistathādhike । evaṃ viṣuvatī chāyā svadeśe yā dinārdhajā ।।
- SS 2.60versekrānteḥ kramotkrammajye dve kṛtvā tatrotkramajyayā । hīnā trijyā dinavyāsadalaṃ taddakṣiṇottaram ।।
The channels it runs in
Every function, what it calls, who calls it
11 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.
Computes Sūrya-Siddhānta Canonical Trepidation Ayanāṃśa (त्रैराशिक दोलन अयनांश). In SS 3.9–12: In a Mahāyuga, the asterisms oscillate 600 times. Period of 1 complete cycle = 4,320,000 / 600 = 7,200 solar years. Amplitude = ±27° (1620 arcminutes). Rate = 54 arcseconds per solar year. Zero-point: Year 3600 of Kali Yuga (499 CE, epoch of Āryabhaṭa). @param {number} yearCE - Astronomical year (e.g. 20
Computes Continuous Linear Sūrya-Siddhānta Ayanāṃśa (54 arcsec/yr).
REFEREE ONLY — not śāstra. The 1955 Calendar-Reform-Committee ("Citrā-pakṣa") ayanāṃśa: 23.853056° at J2000, 50.29″/yr. It is NOT the Sūrya-Siddhānta's ayanāṃśa (3.9–3.12, the ±27° libration) and is never chosen by default. Kept only so a modern almanac can be compared against the text; a foreign-frame number, labelled as such.
Master Ayanāṃśa Selector.
Sūrya-Siddhānta Bimbamāna (Angular Diameters of Sun, Moon, and Earth Shadow). SS 4.1–5 gives: Sun angular diameter at mean distance = 32.5' (1950") Moon angular diameter at mean distance = 31.5' (1890") Earth's shadow diameter at Moon distance (तमोबिम्ब) ≈ 80.0'
Computes True Pāta (Krānti-Sāmya / क्रान्तिसाम्य: Equal Declination of Sun and Moon). Sūrya-Siddhānta Chapter 11: - Vaidhṛta (वैधृत): Occurs when Sun & Moon have equal declination in same hemisphere, and sum of Sāyana longitudes ≈ 360° (or 12 signs). - Vyatīpāta (व्यतीपात): Occurs when Sun & Moon have equal declination in opposite hemispheres, and sum of Sāyana longitudes ≈ 180° (or 6 signs).
Evaluates Heliacal Visibility and Risings/Settings (उदयास्ताधिकार).
Checks for Rohiṇī Śakaṭa Bheda (रोहिणी शकट भेद, SS 8.13). The classical catastrophe when Saturn punctures the wain of Rohiṇī (Aldebaran).
Identifies Solar Saṅkrānti (सौर संक्रान्ति) and Intercalary / Lost Months. Rule (Amānta System): A lunar month begins at New Moon (Amāvāsyā). - If 1 Solar Ingress occurs during the lunar month: Normal Māsa (named after the sign entered). - If 0 Solar Ingress occurs: Adhika Māsa (अधिक मास / Intercalary Month). - If 2 Solar Ingresses occur: Kṣaya Māsa (क्षय मास / Lost Month). @param {number} sunSign