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

प्रमाण: पाठ SS ch. 1–2 and the pañcāṅga rules (tithi, nakṣatra, yoga, karaṇa, vāra) · गणित (exact instants on the lattice)

324 lines · 11 exports

प्रमाण: पाठ SS ch. 1–2 and the pañcāṅga rules (tithi, nakṣatra, yoga, karaṇa, vāra) · गणित (exact instants on the lattice)
लेख · the header

The header, as the file states it

प्रमाण: पाठ SS ch. 1–2 and the pañcāṅga rules (tithi, nakṣatra, yoga, karaṇa, vāra) · गणित (exact instants on the lattice) purnanka-panchanga.js — The Five Sacred Limbs (पञ्चाङ्ग) on the Pure Spanda Lattice. Direct derivation from Sūrya-Siddhānta: 1. Vāra (वार) — Planetary Lord of the Civil Day (Ahargaṇa mod 7) 2. Tithi (तिथि) — Lunar phase angle (λ_Moon - λ_Sun) / 12° 3. Nakṣatra (नक्षत्र) — Moon's sidereal mansion λ_Moon / 13°20' 4. Yoga (योग) — Solar-Lunar longitude sum (λ_Sun + λ_Moon) / 13°20' 5. Karaṇa (करण) — Half-tithi phase (λ_Moon - λ_Sun) / 6° All transition boundaries are solved down to the individual Spanda (0.13 μs) using pure integer bisection on the turn clock: spandas of the turn (N = 656,100,000,000 = 30⁸ a turn, D1/D1a/D1c) counted from the civil day's start (a civil day is N·R/S ≈ 657,896,260,837.988 of them).
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

VARASTITHI_NAMESNAKSHATRASYOGASCARA_KARANASgetKaranaNametrueSunLongitudeArcmintrueMoonLongitudeArcmincomputePurnankaPanchangafindTithiAntaSpandafindNakshatraAntaSpanda
पाठ · the verses it cites

SS verses named in the header

none in the registry

नलिका · 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.

getKaranaName(karanaIndex1Based)lines 101–111exported
calls nothing in the registry
called by nothing in the registry
trueSunLongitudeArcmin(aharganaQ)lines 114–121exported

── True Longitude Calculation for Sun and Moon ─────────────────────────────

BM()lines 134–134
calls nothing in the registry
called by sunMoonArcmin
UB()lines 135–135
calls nothing in the registry
called by nothing in the registry
arcminQ(deg)lines 136–136
tierOf(opts)lines 146–146
calls nothing in the registry
called by nothing in the registry

Computes the complete 5 limbs of the Pañcāṅga for a given Ahargaṇa and Spanda offset. @param {bigint|number} ahargana - Days from epoch (Kaliyuga start = 0) @param {bigint|number} spandaOffset - Intra-day tick in spandas of the turn since the civil day's start [0, ⌈N·R/S⌉) @param {Object} [opts] - { tier: 'bandha' (the closed system: purnanka-bandha-tantra.js) | 'bija' (default: the bīja Sun and M

calls nothing in the registry
called by nothing in the registry

Spanda-Exact Bisection for Tithi Transition (तिथि अन्त). Finds the exact Spanda tick when (λ_Moon - λ_Sun) crosses targetArcmin.

calls nothing in the registry
called by nothing in the registry

Spanda-Exact Bisection for Nakṣatra Transition (नक्षत्र अन्त). Finds the exact Spanda tick when λ_Moon crosses targetArcmin.

calls nothing in the registry
called by nothing in the registry