yantra/drk-lambana.js
प्रमाण: पाठ (SS 1.59 the Earth's diameter 1,600 yojana; 12.85 / 7.14 the Moon's orbit 324,000 yojana — 15 yojana a kalā; SS 5
81 lines · 8 exports
प्रमाण: पाठ (SS 1.59 the Earth's diameter 1,600 yojana; 12.85 / 7.14 the Moon's orbit 324,000 yojana — 15 yojana a kalā; SS 5
लेख · the header
The header, as the file states it
प्रमाण: पाठ (SS 1.59 the Earth's diameter 1,600 yojana; 12.85 / 7.14 the Moon's orbit 324,000 yojana — 15 yojana a kalā; SS 5
lambana/nati: the observer is on the surface, not at the centre — ss-grahana.js carries the text's own eclipse form) ·
गणित (the exact sphere: the Moon's place from the surface is its place from the centre less the observer's own vector, in the
text's manda-karṇa for the distance) · भारतीय-रूप·पुनर्मापित (one number re-measured: the Moon's mean distance in Earth-radii —
the text's 324,000 ÷ (2π·800) = 64.46 gives a greatest lambana of 53.3′; the sky gives 57–61′, so the mean is MOON_MEAN_DISTANCE
below, named, replaceable by the owner's own N-body distance) · never दर्शन.
drk-lambana.js — दृक्-लम्बन: the Moon (or any graha) as seen from a place on the Earth's surface. The jātaka stands on the
surface; the text's lambana (SS 5) moves the Moon up to a degree toward the horizon. Owner, 2026-10-31: the one engine takes
this from the standalone's step 3 ("भू-पृष्ठीय चन्द्र-लम्बन"), on the engine's own frame and distance.
topocentric(t, lat, lonEast, body = 'moon') → { lon, lat (nirayaṇa, served: the same in every frame, D23a(2)), lambanaArcmin (λ_topo − λ_geo),
natiArcmin (β_topo − β_geo), horizontalParallaxArcmin, distanceEarthRadii, altitudeDeg, hourAngleDeg, karnaRatio }
The Moon's distance (opts.distanceLaw): 'area' (default) — r = mean ÷ √(gati ÷ madhya-gati), the swept-area law on the
served true motion (स्वामी-परम्परा — Pardeep Sehrawat's own rule, 2026-10-31: no verse states it; recorded in his name, SVAMI-GANITA §10.1); 'text-linear' — SS 5.7-5.9's own proxy, the greatest lambana
a fifteenth of the motion (HP = gati ÷ 15 × the re-measured factor), linear in the motion; 'karna' — the text's manda-karṇa
(SS 2.39-2.42), which over-swings the distance (the Moon's epicycle of 32° is a longitude device, not a distance).
Geometry: equatorial vectors in Earth-radii; the observer at geographic latitude φ on a sphere (the text's Earth is a sphere;
the flattening's 0.2° of latitude moves the Moon < 0.2′ — not modelled, said here); θ = the meridian's right ascension
(udaya-bija: the frame's rotation at the place). Trigonometry by madhava-ganita only.
आवश्यक · requires
What it loads
- yantra/udaya-bija.jsmodule
- yantra/madhava-ganita.jsmodule
- yantra/bija-samskara.jsmodule
- yantra/patha/sphuta.jsmodule
required by
निर्यात · exports
What it exports
topocentricmoonKarnaRatioMOON_MEAN_DISTANCETEXT_MEAN_DISTANCEMOON_MEAN_MOTIONTEXT_HP_FACTOREARTH_DIAMETER_YOJANAMOON_ORBIT_YOJANAपाठ · the verses it cites
SS verses named in the header
- SS 1.59verseyojanāni śatānyaṣṭau bhūkarṇo dviguṇāni tu । tadvargato daśaguṇātpadaṃ bhūparidhirbhavet ।।
- SS 5.7versenatāṃśabāhukoṭijye asphuṭe dṛkkṣepadṛggatī । ekajyāvargataśchedo labdhaṃ dṛggatijīvayā ।।
- SS 2.39versetadguṇe bhujakoṭijye bhagaṇāṃśavibhājite । tadbhujajyāphaladhanurmāndaṃ liptādikaṃ phalam ।।
नलिका · channels
The channels it runs in
कार्य · the functions
Every function, what it calls, who calls it
7 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.
mod360(x)lines 38–38
calls nothing in the registry
the text's manda-karṇa of the Moon at t, as a ratio to R (SS 2.39-2.42: √((R + koṭiphala)² + bhujaphala²)) — > 1 toward the ucca
called by rMoon
eqVec(ra, dec, r)lines 46–46
called by nothing in the registry
eclipticOf(ra, dec, eps)lines 48–52
equatorial (sāyana, of date) → ecliptic of date, degrees: λ, β
calls madhava-ganita.jya, madhava-ganita.kojya, madhava-ganita.capa, madhava-ganita.capaOfJya, mod360
called by nothing in the registry
The graha as seen from the place (default the Moon — for the others the shift is under 1″ except the Sun's 9″).
calls nothing in the registry
motion()lines 60–60
calls bija-samskara.bijaGrahas
called by nothing in the registry
rMoon()lines 61–61
calls moonKarnaRatio
called by nothing in the registry