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

कालचक्र-दशा, Parāśara 46.52–46.100 as the local edition carries it, on the 108-cell lattice (27 nakṣatras × 4 pādas).

245 lines · 0 exports

लेख · the header

The header, as the file states it

kalachakra.js — कालचक्र-दशा, Parāśara 46.52–46.100 as the local edition carries it, on the 108-cell lattice (27 nakṣatras × 4 pādas). Text (editions/parashara-rahasya-full-edition.html, verse lines in the edition; corpus/bphs/canon.json carries the same verses): 46.54–55 a twelve-cell wheel with the signs from Meṣa; 46.71: in apasavya the signs are written reversed (vyasta) 46.56 the triad from Aśvinī is savya, the triad from Rohiṇī apasavya — the triads alternate: odd triads savya, even apasavya 46.57–58 ten savya stars follow Aśvinī (the first and third of each savya triad); 46.65: five follow Bharaṇī (the second) 46.71 Rohiṇī, Maghā, Viśākhā, Śravaṇa (the first of each apasavya triad) follow Rohiṇī 46.77 the octad Mṛgaśira, Ārdrā, Pūrva-phalgunī, Uttara-phalgunī, Anurādhā, Jyeṣṭhā, Dhaniṣṭhā, Śatabhiṣā "like Cāndra" (Mṛgaśira, Soma's star) — the second AND third of each apasavya triad; the standard printed tables put the third with Rohiṇī instead: TYPE_RULE carries both, the text's reading is the default 46.60–64 Aśvinī's four pādas, nine signs each; 46.66–69 Bharaṇī's; 46.73–76 Rohiṇī's; 46.78–81 Mṛgaśira's — by word-numerals 46.84 years by the lord: Sūrya 5, Candra 21, Maṅgala 7, Budha 9, Guru 10, Śukra 16, Śani 4; a sign's daśā is its lord's years 46.88 the aṃśaka A = 4 × ((past nakṣatras) mod 3) + the pāda — the 108-cell index taken mod 12 46.85, 89 the nine signs' years from the aṃśaka are the āyus: Meṣa 100, Vṛṣa akṣa-aṣṭau 85, Mithuna tri-gajāḥ 83, Karka aṅga-gajāḥ 86, the same in their trines (word-numerals read units first, "aṅkānāṃ vāmato gatiḥ") 46.92–93 bhukta = (the Moon's arc gone in the pāda × the pāda's years) ÷ 200′; bhogya = the rest 46.94–95 savya: the first aṃśa is deha, the last jīva, counted from deha; apasavya: reversed (viloma), counted from jīva 46.96–100 three motions: maṇḍūkī (Kanyā–Karka, Siṃha–Mithuna), markaṭī (Karka–Siṃha), siṃhāvalokana (Mīna–Vṛścika, Dhanu–Meṣa) — named on the chain's steps; the phala verses (46.101–111) are not built What the text fixes and what is read (see READINGS): the sixteen chains come in reversed pairs — Rohiṇī's pāda p is Bharaṇī's pāda 5−p reversed, Mṛgaśira's pāda p is Aśvinī's pāda 5−p reversed — and every chain's year-sum equals the 46.89 paramāyus of the trine of its aṃśaka (savya: A; apasavya: A counted viloma, 4r + 5 − p). Those two identities decide the compounds the edition left open (46.61's interior, 46.62's close, 46.66's direction, 46.74's first word) and refute the edition's own right-to-left misreading of 46.89 (28, 38, 68). Everything here is [text] or [reading]; the antardaśā rule and the continuation past the nine signs are [standard], not in these verses, and are so tagged on their outputs. Browser: window.Kalachakra (needs window.Panchanga, window.Dasha); node: module.exports.
आवश्यक · requires

What it loads

required by
nothing in the registry
निर्यात · exports

What it exports

पाठ · 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

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

audit(name = "text")lines 90–103exported

Every hard check on a variant's chains: the sum against the paramāyus, deha and jīva against the verse (where attested), the reversal pair, and the steps. Returns the counts and the failures, so each reading's proof is runnable.

calls stepsOf
called by nothing in the registry
motionOf(a, b)lines 113–119exported

The motion named on the pair {a, b} (either direction), or null for a plain one-sign step. The Karka–Siṃha pair is one sign apart: 46.98 calls the markaṭī "going backward", and in the chains that step reverses direction only beside a frog-jump (…Kanyā → Karka → Siṃha → Mithuna… and its reverse); stepsOf labels it there and nowhere else.

calls nothing in the registry
called by stepsOf
stepsOf(signs)lines 120–127
calls motionOf
called by audit, chainOf
fin(x, what)lines 129–129
calls nothing in the registry
mod(a, n)lines 130–130
calls nothing in the registry
called by nothing in the registry
cellOf(lonDeg)lines 136–140exported

The 108-cell index of a sidereal longitude (degrees): cell = 4n + (p − 1), nakṣatra n = 0…26, pāda p = 1…4. The longitude is rounded ONCE, to a micro-arcsecond, and the cell and the arc gone in it are the quotient and remainder of that one integer by the pāda — so the arc gone is always less than a pāda and never disagrees with the cell (the second review found the earlier float floor and a separa

calls fin
called by fromMoon

Which chain a nakṣatra (0-based) and pāda take, and the aṃśaka that keys its years. opts.types: 'text' (46.77) or 'standard'.

calls fin
called by chainOf
chainOf(nakshatra0, pada, opts)lines 153–167exported

The chain of a nakṣatra (0…26) and pāda (1…4): the nine signs, their years, the paramāyus and its check, deha and jīva, the motions.

table(opts)lines 169–176exported

All sixteen chains with their checks.

calls chainOf
called by nothing in the registry
calls nothing in the registry
called by periodsOf
yearOf(opts)lines 181–181
calls nothing in the registry
called by fromMoon
cyclesOf(opts)lines 182–182
calls nothing in the registry
called by fromMoon
rationalOf(x, what)lines 183–187
calls nothing in the registry
called by fromMoon
S(x)lines 188–188
calls nothing in the registry
called by dasha

The nine periods of one chain from an instant (rational spandas) at which `gone` of its paramāyus (rational years) is already elapsed; the signs whose years lie inside `gone` are marked elapsed and the running one carries its balance. With 0 ≤ gone < paramāyus exactly one sign is running [theorem: the nine spans partition the paramāyus].

called by fromMoon
dasha(tDays, opts)lines 208–211exported

Kālacakra mahādaśās from a birth instant (days since the Kali epoch). The Moon's sidereal longitude from the pañcāṅga (the text tier) gives the cell; 46.93 gives the elapsed years; opts.cycles (default 1) adds the following pādas' chains [standard continuation, not in the verses]; opts.types 'text' | 'standard' (46.77); opts.year as dasha.js.

calls fin, fromMoon, S
called by subPeriods
subPeriods(period, ctx)lines 229–240exported

Sub-periods of a period: the nine signs of its own chain in order, each (period × sign-years ÷ the chain's sum) [standard, not in 46.52–100]. The second argument is the period's chain, or the daśā result it came from (the chain is then found by the period's cell).

called by nothing in the registry
runningAt(dasha, instant)lines 241–241exported
calls nothing in the registry
called by nothing in the registry