भारत · ग्रहगणित
स्थान उज्जयिनी 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/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

प्रमाण: पाठ 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) · गणित
लेख · the header

The header, as the file states it

प्रमाण: पाठ 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) · गणित purnanka-siddhanta-advanced.js — Advanced Sūrya-Siddhānta Cosmological & Astronomical Engine Implements the remaining foundational chapters of Sūrya-Siddhānta on the Spanda Lattice: 1. Ayanāṃśa Engine (अयनांश, SS 3.9–12): - Canonical Trepidation (दोलन: 600 rev/Mahāyuga, ±27°, 54"/yr, zero at 499 CE) - Linear Sūrya-Siddhānta (54"/yr continuous) - (referee only, never default) the 1955 committee ayanāṃśa, for comparison against modern almanacs - Sāyana (Tropical) ⟷ Nirayana (Sidereal) exact conversions 2. Eclipses (सूर्यग्रहण एवं चन्द्रग्रहण, SS Chapters 4, 5, 6): - Angular Diameters (Bimbamāna): Sun, Moon, and Earth's shadow (तमोबिम्ब) - Lunar Eclipse (Candra Grahaṇa): Syzygy, shadow contact, magnitude (Grāsa), totality (Pūrṇa/Khaṇḍa) - Solar Eclipse (Sūrya Grahaṇa): Syzygy, Parallax in Longitude (Lambana / लम्बन) and Latitude (Nati / नति); seen at a place only while the Sun is above its horizon (the half-day of SS 2.60–2.63 from the Sun's declination, shastra-patha/ss-udaya) 3. Mahāpāta / Pāta Sādhana (वैधृत एवं व्यतीपात, SS Chapter 11): - Krānti-Sāmya (Equal Declination of Sun and Moon) - Vaidhṛta (same side, sum ≈ 360°) and Vyatīpāta (opposite side, sum ≈ 180°) 4. Heliacal Risings & Settings (उदयास्ताधिकार, SS Chapter 9): - Kālāṃśa limits: Moon 12°, Mars 17°, Jupiter 11°, Saturn 15°, Mercury 14°/12°, Venus 10°/8° - Prāg/Paścad Udaya and Asta detection 5. 27 Nakṣatra Yogotārā Coordinates (भग्रहयुति, SS Chapter 8): - Canonical polar longitudes (Dhruvaka) and latitudes (Vikṣepa) - Rohiṇī Śakaṭa Bheda (रोहिणी शकट भेद) detection 6. Saṅkrānti & Adhika / Kṣaya Māsa Detection: - Exact solar ingress into 12 signs - Amānta lunar month naming and Adhika (intercalary) / Kṣaya (lost) month resolution
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

computeAyanamshaSuryaSiddhantaTrepidationcomputeAyanamshaSuryaSiddhantaLinearcomputeAyanamshaLahiricomputeAyanamshasayanaToNirayananirayanaToSayanacomputeBimbamanaArcminevaluateLunarEclipseevaluateSolarEclipseevaluatePataKALAMSHASevaluateHeliacalVisibilitySS_YOGOTARA_CATALOGcheckRohiniShakataBhedaLUNAR_MONTH_NAMESevaluateLunarMonthStatus
पाठ · the verses it cites

SS verses named in the header

  • SS 3.9verse
    triṃśatkṛtyo yuge bhānāṃ cakraṃ prākparilambate । tadguṇādbhūdinairbhaktāddyugaṇādyadavāpyate ।।
  • SS 3.10verse
    taddostrighnā daśāptāṃśā vijñeyā ayanābhidhāḥ । tatsaṃskṛtādgrahātkrānticchāyācaradalādikam ।।
  • SS 3.11verse
    sphuṭaṃ dṛktulyatāṃ gacchedayane viṣuvadvaye । prākcakraṃ calitaṃ hīne chāyārkātkaraṇāgate ।।
  • SS 3.12verse
    antarāṃśairathāvṛtya paścāccheṣaistathādhike । evaṃ viṣuvatī chāyā svadeśe yā dinārdhajā ।।
  • SS 2.60verse
    krānteḥ kramotkrammajye dve kṛtvā tatrotkramajyayā । hīnā trijyā dinavyāsadalaṃ taddakṣiṇottaram ।।
नलिका · channels

The channels it runs in

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

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

calls nothing in the registry

Computes Continuous Linear Sūrya-Siddhānta Ayanāṃśa (54 arcsec/yr).

calls nothing in the registry
computeAyanamshaLahiri(yearCE)lines 94–98exported

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.

calls nothing in the registry
calls nothing in the registry
called by nothing in the registry
calls nothing in the registry
called by nothing in the registry

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'

calls nothing in the registry
called by nothing in the registry

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).

calls nothing in the registry
called by nothing in the registry

Evaluates Heliacal Visibility and Risings/Settings (उदयास्ताधिकार).

calls nothing in the registry
called by nothing in the registry

Checks for Rohiṇī Śakaṭa Bheda (रोहिणी शकट भेद, SS 8.13). The classical catastrophe when Saturn punctures the wain of Rohiṇī (Aldebaran).

calls nothing in the registry
called by nothing in the registry

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

calls nothing in the registry
called by nothing in the registry