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

भूगोल, the place in Vedic units (palabha, deshantara) and how it is measured (Phase B, STEP 2a).

385 lines · 0 exports

प्रमाण: पाठ (SS 1.59-65, 2.28, 2.60-63, 3.8, 3.12b-17a, 3.20b-22a) · गणित · दृक् (measured shadow, eclipse contact, madhyahna) ·
लेख · the header

The header, as the file states it

bhugola.js — भूगोल, the place in Vedic units (palabha, deshantara) and how it is measured (Phase B, STEP 2a). प्रमाण: पाठ (SS 1.59-65, 2.28, 2.60-63, 3.8, 3.12b-17a, 3.20b-22a) · गणित · दृक् (measured shadow, eclipse contact, madhyahna) · स्वामी-परम्परा (Pardeep Sehrawat): BHUGOLA (2-rajata-decisions.md:71, K2) and B10 (the place's shesha digits by K9) A place in the core is (palabha p, deshantara d): p the equinoctial noon shadow of the 12-angula shanku, displayed in angula·vyangula·prativyangula (60ths) d the east-west distance along the place's own parallel from the Lanka-Ujjayini line (SS 1.62), east positive, in yojana and as time in nadi·vinadi·prana (ghati·pala, with vipala beside) Earth: diameter 1600 yojana; PARIDHI_SQ = 10 x 1600^2 = 25,600,000 (SS 1.59, ED:983). Sine table: R = 3438 and the 24 jyas (sphuta.js, ss-udaya.js). No foreign trigonometric function, no circle ratio, and no degree parameter anywhere in this module; cited coordinates enter only through the aside (yantra/bhugola-aside.js). Every served value is {value, sutra, pramana, source} with ASCII digits. Browser: window.Bhugola (needs Sphuta, SSUdaya, SSChaya, KalaVibhaga); node: module.exports.
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

पाठ · 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 1.60verse
    lambajyāghnastrijīvāptaḥ sphuṭo bhūparidhiḥ svakaḥ । tena deśāntarābhyastā grahabhuktirvibhājitā ।।
  • SS 1.61verse
    kalādi tatphalaṃ prācyāṃ grahebhyaḥ pariśodhayet । rekhāpratīcīsaṃsthāne prakṣipetsyuḥ svadeśajā ।।
  • SS 1.62verse
    rākṣasālayadevaukaḥśailayormadhyasūtragāḥ । rohītakaṃ avantī ca yathā sannihitaṃ saraḥ ।।
  • SS 1.63verse
    atītyonmīlanādindoḥ paścāttadgaṇitāgatāt । yadā bhavettadā prācyāṃ svasthānaṃ madhyato bhavet ।।
  • SS 1.64verse
    aprāpya ca bhavetpaścādevaṃ vāpi nimīlanāt । tayorantaranāḍībhirhanyādbhūparidhiṃ sphuṭam ।।
  • SS 1.65verse
    ṣaṣṭyā vibhajya labdhaistu yojanaiḥ prāgathāparaiḥ । svadeśaḥ paridhau jñeyaḥ kuryāddeśāntaraṃ hi taiḥ ।।
नलिका · 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.

isqrt(n)lines 30–35
calls nothing in the registry
called by nothing in the registry
pad2(n)lines 75–75
calls nothing in the registry
formatPalabha(palabhaAngula)lines 79–96exported

Palabha in angula·vyangula·prativyangula (60ths of the 12-angula shanku).

formatDeshantaraTime(nadi)lines 99–124exported

Deshantara time (in nadi / ghati, east +) formatted in ghati·pala·vipala and nadi·vinadi·prana.

sheshaDigitsOfNadi(nadi)lines 127–138exported

B10: Shesha digits of |d|/60 day by K9 (kala-vibhaga.js).

calls fin
called by sthanaFromVedic
parallelOfPalabha(palabhaAngula)lines 142–161exported

B2 + B3: akshakarna, akshajya, lambajya, aksha/lamba in arcminutes (kala), and local circumference in yojana.

B4: Deshantara in nadi from east-west yojana along the place's parallel (east +).

called by nothing in the registry

B4 inverse: East-west yojana along the place's parallel from deshantara in nadi (east +).

called by nothing in the registry

B4: Graha deshantara correction in kala (arcminutes), subtracted in the east and added in the west (SS 1.61).

called by nothing in the registry

Forward noon shadow (angula) and direction ("N" or "S") of the 12-angula shanku from palabha and krantiArcmin (SS 3.20b-22a).

called by nothing in the registry
palabhaFromShadow(input, opts)lines 200–229exported

B5: Palabha measured from the equinoctial noon shadow (SS 3.12b-13a), or from any noon shadow + krantiArcmin (SS 3.14b-17a). Accepts either palabhaFromShadow(chayaAngula, opts) or a vedha record { shadowAngula | shadow_angula, dir, krantiArcmin }.

called by nothing in the registry

B6: Deshantara from a lunar eclipse contact seen against Ujjayini's computed instant (SS 1.63-65). Supports (seenNadi, ujjayiniNadi, palabhaAngula) or record objects ({ contactNadi, palabha }, { contactNadi }).

called by nothing in the registry
deshantaraFromMadhyahna(opts)lines 267–287exported

B7: Deshantara from observed sunrise and sunset against Ujjayini's computed noon (midpoint cancels cara). Inputs { sunrise, sunset, ujjayiniNoon, palabha, unit }: default unit is 'days' (e.g. JD or civil day fraction: x 60 -> nadi); pass unit: 'nadi' if sunrise, sunset and ujjayiniNoon are already in nadi on the same clock.

called by nothing in the registry
cara(palabhaAngula, krantijya = 0)lines 291–299exported

B8: Cara (ascensional difference) from palabha and krantijya (signed R-sine of declination, |krantijya| <= 1397).

B9: Sunrise difference from Ujjayini in nadi: (cara_Uj - cara_place) - d_nadi, so an eastern place rises earlier (< 0).

calls cara, fin
called by sthanaFromVedic

── Complete Vedic place record (B1..B10, every field wrapped with sutra, pramana, source) ────────────────────────────