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

सूक्ष्म-काल: the resolution the divisional charts (vargas) demand of time, with exact division

197 lines · 0 exports

लेख · the header

The header, as the file states it

sukshma-kala.js — सूक्ष्म-काल: the resolution the divisional charts (vargas) demand of time, with exact division arithmetic, and the lattice that links the nakṣatra loop (ℤ/27) to the graha loop (ℤ/9). WHY. A varga D-n divides each sign of 30° into n parts; a placement is decided only when the body's longitude is farther from the nearest part boundary than the uncertainty of that longitude. The finest parts are small: one ṣaṣṭyāṃśa (D-60) is 30′, one nāḍyaṃśa (D-150) is 12′. The lagna moves about a degree in four minutes of clock, the Moon 13° in a day, so the same parts are a minute or a few seconds of birth time for the lagna and tens of minutes for the Moon. This file states those numbers for any varga and any rate, computes every index and margin exactly, and gives the lattice identities. It judges nothing about a chart; it measures what a tier's declared uncertainty leaves decided. The uncertainties themselves are the tiers' measured figures (the research page passes them in). THE RULES. The sixteen vargas of Bṛhat Parāśara Horā Śāstra ch.6 as the local edition states them (editions/ parashara-rahasya-full-edition.html, the "गणित / तकनीक" lines) and as math-core.js computeVarga has long computed them: equal arcs of 30°/n counted from a sign that depends on the sign's parity or triplicity, the triṃśāṃśa's unequal arcs (odd signs 5/5/8/7/5, even 5/7/8/5/5), the horā's halves. D-144 (the dvādaśāṃśa's dvādaśāṃśa) and D-150 (the nāḍyaṃśa of the nāḍī texts) are not among the edition's sixteen: counted from the sign itself [standard]. sukshma-kala.test.js checks every rule against computeVarga on random longitudes and the exact boundaries. ARITHMETIC. Longitudes come in as degrees (float, the tiers' output); they are rounded once to micro-arcseconds (BigInt) and every division, index and margin is exact after that. Nothing here is trigonometric; nothing is imported. THE LATTICE. 27 nakṣatras × 4 pādas = 108 = 12 rāśis × 9 navāṃśas, and one pāda = one navāṃśa = 3°20′ exactly, so the pāda index k ∈ ℤ/108 of a longitude gives both its nakṣatra (⌊k/4⌋) and its navāṃśa within the sign (k mod 9) [theorem]. The Vimśottarī lord of a nakṣatra is its index mod 9 in the order Ketu, Śukra, Sūrya, Candra, Maṅgala, Rāhu, Guru, Śani, Budha from Aśvinī (BPHS 46.12-46.13, dasha.js), the 27 → 9 projection; the balance at birth is the part of the nakṣatra gone (46.16), so one minute of arc of the Moon is years × 365.26 ÷ 800 days of daśā. These are counting identities: they carry no information about the sky. The accuracy of the loop is the accuracy of the Moon, the lagna and the frame that feed it. Browser: window.SukshmaKala; node: module.exports.
आवश्यक · requires

What it loads

nothing

required by
निर्यात · 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

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

mod(a, m)lines 39–39
calls nothing in the registry
called by microOf
fin(x, what)lines 40–40
calls nothing in the registry
microOf(lonDeg)lines 42–42exported

A longitude in degrees → micro-arcseconds in [0, CIRCLE), rounded once.

calls mod, fin
called by index, margin, cell
degOf(micro)lines 43–43
calls nothing in the registry
called by margin
arcsecOf(micro)lines 44–44
calls nothing in the registry
called by margin
vargaOf(code)lines 69–69
calls nothing in the registry
partWidth(code)lines 71–76exported

The width of one part, exact: { micro (BigInt µas), arcsec, deg }. The triṃśāṃśa has unequal parts (5°…8°).

calls vargaOf
called by resolution, assess
partOf(within, n)lines 78–78

The part (0 … n−1) a longitude-within-sign (µas) falls in.

calls nothing in the registry
called by index, margin
index(lonDeg, code)lines 83–103exported

The varga sign (0 = Meṣa … 11 = Mīna) of a longitude, by the rules of BPHS ch.6 as computeVarga states them.

called by assess, cell
margin(lonDeg, code)lines 106–114exported

The part index within the sign (0 … n−1; the triṃśāṃśa's 0 … 4) and the distance to the nearest boundary of the source division, exact in µas: { part, marginMicro, marginArcsec, lowerMicro, upperMicro }.

resolution(code, rates)lines 117–124exported

What a varga's part is in time, for given rates: the lagna's seconds of clock (deg a minute), the Moon's minutes and the Sun's hours (deg a day). For the triṃśāṃśa the smallest part (5°) is used.

called by nothing in the registry
assess(lonDeg, code, budgetArcsec)lines 126–130exported

A placement under a declared uncertainty (arcseconds): decided when the margin exceeds it.

called by nothing in the registry

Every body of `positions` ({ key: lonDeg }) in every varga of `codes`, each under its body's budget ({ key: arcsec }).

calls nothing in the registry
called by nothing in the registry
cell(lonDeg)lines 147–152exported

The cell of a longitude on the 108-lattice: k = ⌊λ / 3°20′⌋, its nakṣatra (1…27), pāda (1…4), rāśi (0…11), navāṃśa within the sign (0…8) — and the theorem that the navāṃśa index equals k mod 9 (checked in the test).

calls microOf, index
called by nothing in the registry

Days of Vimśottarī daśā per minute of arc of the Moon at birth, for a lord (name or index) and a year length in days.

calls fin
called by nothing in the registry
nu3(n)lines 165–171exported

ν₃(n): how many times 3 divides the integer n (BigInt or integer); the level k at which n lies in the owner's tower (ℤ/3^k ℤ, 2, k). ν₃ = 0 means n is a unit mod 3^k for every k (invertible); the kuṭṭaka on such a count always solves.

valuationTable(entries)lines 173–175exported

A table of counts [{ name, value, source }] → the same with ν₃, the 3-free part and whether the count is a unit mod 3.

calls nu3
called by nothing in the registry
generatorOrbits(modulus, g = 2)lines 179–191exported

The cycles of x ↦ g·x on ℤ/modulus (g = 2 by default): structure only — no daśā or transit rule is derived from it. On ℤ/9 the cycle lengths are 1, 6, 2 and on ℤ/27 they are 1, 18, 6, 2 [theorem]; so no order that runs through all 9 lords or all 27 nakṣatras in one cycle (the Vimśottarī order, the nakṣatra succession) is a doubling orbit: those are the orbits of x ↦ x + 1.

calls fin
called by nothing in the registry