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

मुहूर्त: the day's divisions and the windows the texts tell us to avoid, each with its source.

208 lines · 0 exports

प्रमाण: पाठ (the muhūrtas, the varjya, the pātas, the tārā as the texts give them) · गणित
लेख · the header

The header, as the file states it

muhurta.js — मुहूर्त: the day's divisions and the windows the texts tell us to avoid, each with its source. प्रमाण: पाठ (the muhūrtas, the varjya, the pātas, the tārā as the texts give them) · गणित Sourced in the local texts: SS 11.1-11.2, 11.6-11.12 the two pātas: when the Sun's and Moon's declinations are equal with their (sāyana) longitudes summing to half a circle (Vyatīpāta) or a whole circle (Vaidhṛta); the Moon's declination is taken with her latitude (11.7). This module finds the middle instant (11.12); the duration needs the discs' measures (11.14, ch.4), not built yet. SS 11.19 the equality can happen twice, and in the reverse case not at all — so every equal-declination instant near the longitude condition is reported, or its absence. The local edition reads "viṣuvat-sannidhau", near the equinox. Computed (1990-2025, 1108 pātas): every double and every failure has the sāyana Sun within 33° of a SOLSTICE, where both declination curves are flat; none of the 235 pātas within 20° of an equinox is double. The failures come in runs around 1996 and 2015 and none in 2002-2010 — the Moon's 18.6-year nodal cycle (her greatest declination then stays below the Sun's). Flagged for the owner [reading conflict; another witness of 11.19 is needed]. SS 11.20 the sum of Sun and Moon divided by a nakṣatra's span: "saptadaśānta" is a third Vyatīpāta. Read here as the whole 17th yoga [reading; the word can also mean only its end]. SS 11.21-11.22 gaṇḍānta: the last pāda of Āśleṣā, Jyeṣṭhā and Revatī and the first pāda of the next — avoided in all works. BPHS 92.1-92.4 gaṇḍānta of tithi (pūrṇā → nandā junctions), of nakṣatra (the same three junctions) and of lagna (Mīna–Meṣa, Karka–Siṃha, Vṛścika–Dhanu): "four nāḍīs, below and above" for the first two, "a ghaṭī" for the lagna. Read here as that much on EACH side [reading; pass `nadis` to change it]. 92.3 names the junctions Revatī–Aśvinī, Āśleṣā–Maghā, Jyeṣṭhā–Mūla. 92.2 names the junction of the pūrṇā and nandā tithis; WHICH tithis those are (5, 10, 15 and 1, 6, 11) is not in a local text. BPHS 89.3 riktā tithis and Viṣṭi to be avoided (for śānti). BPHS 44.17 names the vipat, pratyari and vadha tārās (the 3rd, 5th and 7th of the nine-fold count). Not in any local text (marked so, not cited): the division of day and night into fifteen muhūrtas each, Abhijit as the 8th of the day, Brāhma as the 14th of the night, which tithis are riktā (4, 9, 14), pūrṇā and nandā, the 27th yoga as Vaidhṛti, and the full names of the nine tārās. Nāḍī and ghaṭī here are of the star-wheel's turn (NADI_DAYS), as the chain of time requires. Browser: window.Muhurta (needs window.Panchanga, window.Sphuta, window.Dhruva); node: module.exports.
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

पाठ · the verses it cites

SS verses named in the header

  • SS 11.1verse
    ekāyanagatau syātāṃ sūryacandramasau yadā । tadyutau maṇḍale krāntyostulyatve vaidhṛtābhidhaḥ ।।
  • SS 11.2verse
    viparītāyanagatau candrārkau krāntiliptikā । samāstadā vyatīpāto bhagaṇārdhe tayoryutau ।।
  • SS 11.3verse
    tulyāṃśujālasamparkāttayostu pravahāhataḥ । taddṛkkrodhabhavo vahnirlokābhāvāya jāyate ।।
  • SS 11.4verse
    vināśayati pāto asminlokānāṃ asakṛdyataḥ । vyatīpātaḥ prasiddho ayaṃ sañjñābhedena vaidhṛtaḥ ।।
  • SS 11.5verse
    sa kṛṣṇo dāruṇavapurlohitākṣo mahodaraḥ । sarvāniṣṭakaro raudro bhūyo bhūyaḥ prajāyate ।।
  • SS 11.6verse
    bhāskarendvorbhacakrāntaścakrārdhāvadhisaṃsthayoḥ । dṛktulyasādhitāṃśādiyuktayoḥ svāvapakramau ।।
  • SS 11.7verse
    athaujapadagasyendoḥ krāntirvikṣepasaṃskṛtā । yadi syādadhikā bhānoḥ krānteḥ pāto gatastadā ।।
  • SS 11.8verse
    ūnā cetsyāttadā bhāvī vāmaṃ yugmapadasya ca । padānyatvaṃ vidhoḥ krāntivikṣepāccedviśudhyati ।।
  • SS 11.9verse
    krāntyorjye trijyayābhyaste parakrāntijyayoddhṛte । taccāpāntaraṃ ardhaṃ vā yojyaṃ bhāvini śītagau ।।
  • SS 11.10verse
    śodhyaṃ candrādgate pāte tatsūryagatitāḍitam । candrabhuktyā hṛtaṃ bhānau liptādi śaśivatphalam ।।
  • SS 11.11verse
    tadvacchaśāṅkapātasya phalaṃ deyaṃ viparyayāt । karmaitadasakṛttāvadyāvadkrāntī same tayoḥ ।।
  • SS 11.19verse
    ravīndvostulyatā krāntyorviṣuvatsannidhau yadā । dvirbhaveddhi tadā pātaḥ syādabhāvo viparyayāt ।।
  • SS 11.20verse
    śasāṅkārkayuterliptā bhabhogena vibhājitāḥ । labdhaṃ saptadaśānto anyo vyatīpātastṛtīyakaḥ ।।
  • SS 11.21verse
    sārpendrapauṣṇyadhiṣṇyānāṃ antyāḥ pādā bhasandhayaḥ । tadagrabheṣvādyapādo gaṇḍāntaṃ nāma kīrtyate ।।
नलिका · channels

The channels it runs in

कार्य · the functions

Every function, what it calls, who calls it

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

build(P)lines 37–205
mod(a, m)lines 38–38
calls nothing in the registry
called by build, wrap180, tara
wrap180(a)lines 39–39
calls mod
called by build
muhurtas(N, site, opts)lines 48–55exported

Fifteen equal muhūrtas of the day (sunrise→sunset) and fifteen of the night (sunset→next sunrise).

calls nothing in the registry
called by build

Instant near t when f(t) = 0, f monotone increasing through 0 in angle (degrees).

calls nothing in the registry
called by build

Windows in [t1, t2) during which a limb of panchanga.limbsAt takes one of `values`.

calls nothing in the registry
called by build
polar(list)lines 79–79

An empty list marked `polar`: the Sun does not rise or set that civil day, so it has no sunrise-to-sunrise windows.

calls nothing in the registry
called by build, lagnas
varjya(N, site, opts = {})lines 81–81exported

Exclusion windows touching civil day N at the site, each with its source.

calls nothing in the registry
called by build
karanaIndicesOf(name)lines 123–123
calls nothing in the registry
called by build
patas(t1, t2, opts = {})lines 130–130exported

SS 11.1-11.12, 11.19: middle instants of the Vyatīpāta and Vaidhṛta pātas whose middle falls in [t1, t2). Vaidhṛta (11.1): same ayana, sāyana longitudes summing to a circle, declinations equal (opposite signs). Vyatīpāta (11.2): opposite ayanas, sum half a circle, declinations equal (same sign). Either ayana condition follows from the sum. The Moon's declination is corrected by her latitude (11.7)

calls nothing in the registry
called by build

The instant before t at which the rising sign became `index` (searching back at most a day).

calls nothing in the registry
called by build
lagnas(N, site, opts)lines 181–194exported

The rising signs through civil day N (sunrise to next sunrise): start and end of each.

calls polar
called by build
tara(janma, day)lines 199–202exported

Tārā of the day's nakṣatra counted from the birth nakṣatra (both 1…27): 1…9; vipat, pratyari, vadha (3, 5, 7) are the ones BPHS 44.17 names. Names of all nine: the edition's commentary on BPHS, not a verse.

calls mod
called by build