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

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.59verse
    yojanāni śatānyaṣṭau bhūkarṇo dviguṇāni tu । tadvargato daśaguṇātpadaṃ bhūparidhirbhavet ।।
  • SS 5.7verse
    natāṃśabāhukoṭijye asphuṭe dṛkkṣepadṛggatī । ekajyāvargataśchedo labdhaṃ dṛggatijīvayā ।।
  • SS 2.39verse
    tadguṇ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
moonKarnaRatio(t)lines 41–45exported

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

eqVec(ra, dec, r)lines 46–46
called by nothing in the registry

equatorial (sāyana, of date) → ecliptic of date, degrees: λ, β

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
called by nothing in the registry
rMoon()lines 61–61
called by nothing in the registry