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

प्रमाण: पाठ BPHS ch. 27 (ṣaḍbala) · गणित

222 lines · 12 exports

प्रमाण: पाठ BPHS ch. 27 (ṣaḍbala) · गणित
लेख · the header

The header, as the file states it

प्रमाण: पाठ BPHS ch. 27 (ṣaḍbala) · गणित parashara-shadbala.js — षड्बल, Bṛhat-Parāśara-Horā-Śāstra adhyāya 27, by the text's own rules 27.1–27.6 sthāna-bala: ucca (graded from the exaltation point, ÷3), saptavargaja (mūlatrikoṇa 45, sva 30, adhimitra 22½, mitra 15, sama 7½, śatru 3¾, adhiśatru 1⅞ over D1, D2, D3, D7, D9, D12, D30), ojayugma (15 in rāśi, 15 in navāṃśa: Candra and Śukra in even signs, the rest in odd), kendrādi (60/30/15), drekkāṇa (15: male/female/neuter) 27.7 dig-bala: the planet less the weak bhāva-madhya (4th for Sūrya/Maṅgala, 7th for Guru/Budha, lagna for Śani, 10th for Candra/Śukra), folded past six signs, ÷3 27.8–27.17 kāla-bala: natonnata (Budha always 60; Candra/Maṅgala/Śani by the nata, Sūrya/Guru/Śukra by the unnata), pakṣa (the Moon's elongation ÷3 for benefics, 60 − that for malefics; the Moon's doubled), tribhāga (Guru always 60; day Budha/Sūrya/Śani, night Candra/Śukra/Maṅgala), abda 15 / māsa 30 / vāra 45 / horā 60 (the year and month lords by SS 1.51–1.52 from the ahargaṇa), āyana (declination against 24°, the Sun's doubled) 27.18–27.25 ceṣṭā-bala: the Sun's is its āyana-bala, the Moon's its pakṣa-bala; a tārāgraha's from the ceṣṭā-kendra (śīghrocca − (madhya + mandaspaṣṭa)/2, folded past 180°) ÷3 27.26 naisargika: 60, 51 3/7, 42 6/7, 34 2/7, 25 5/7, 17 1/7, 8 4/7 (Sūrya, Candra, Śukra, Guru, Budha, Maṅgala, Śani) 27.27–27.28 dṛg-bala: (Σ śubha-dṛṣṭi − Σ pāpa-dṛṣṭi) ÷ 4, the dṛṣṭi graded by BPHS 26.2–26.8 with the special aspects 27.29 required rūpas: Sūrya 6½, Candra 6, Maṅgala 5, Budha 7, Guru 6½, Śukra 5½, Śani 5 Yuddha-bala (27.19) is reported as 0 unless a graha-yuddha record is given (SS 7.18–7.23 decides the war; the text's bala-difference rule then applies); Rāhu and Ketu have no ṣaḍbala in the text. Inputs are the engine's own numbers: nirayaṇa longitudes, the SS mean / mandaspaṣṭa / śīghrocca, the SS obliquity 24° (R-sine 1397/3438, SS 2.28) for the declination, the ahargaṇa for the year/month/weekday lords, and the lagna / bhāva-madhyas. Keys are Sanskrit (surya, chandra, mangala, budha, guru, shukra, shani); an English-keyed map is accepted and translated.
आवश्यक · requires

What it loads

nothing

required by
निर्यात · exports

What it exports

computeShadbalaBPHS27drishtiVirupakrantiDegUCCA_DEGMULATRIKONANAISARGIKAREQUIRED_RUPAFRIENDSENEMIESRASHI_LORDVARA_ORDERpancadha
पाठ · the verses it cites

SS verses named in the header

  • SS 1.51verse
    sāvano dyugaṇaḥ sūryāddinamāsābdapāstataḥ । saptabhiḥ kṣayitaḥ śeṣaḥ sūryādyo vāsareśvaraḥ ।।
  • SS 7.18verse
    svaśaṅkumūrdhagau vyomni grahau dṛktulyatāṃ itau । ullekhaṃ tārakāsparśādbhede bhedaḥ prakīrtyate ।।
  • SS 2.28verse
    paramāpakramajyā tu saptarandhraguṇendavaḥ । tadguṇā jyā trijīvāptā taccāpaṃ krāntirucyate ।।
नलिका · channels

The channels it runs in

not on a channel
कार्य · the functions

Every function, what it calls, who calls it

9 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 33–33
calls nothing in the registry
toSa(map)lines 53–57

── helpers ───────────────────────────────────────────────────────────────────────────────────────────────────

calls nothing in the registry
calls mod360
called by pancadha
naisargika(a, b)lines 62–62
calls nothing in the registry
called by pancadha

SS 2.28 / 2.58: declination of a body from its sāyana longitude and latitude, with the text's 24° (R-sine 1397 on 3438).

calls nothing in the registry
drishtiVirupa(from, d)lines 80–94exported

BPHS 26.2–26.8: the dṛṣṭi (in virūpas) of graha `from` on a point `d` degrees ahead of it.

computeShadbalaBPHS27(input)lines 106–218exported

computeShadbalaBPHS27(input) input: { grahas: { surya|sun: { lon (nirayaṇa deg), mean (deg), mandaspashta (deg), sighrocca (deg), vikshepaArcmin, isRetrograde }, … }, lagnaDeg, bhavaMadhya: { 1: deg, 4: deg, 7: deg, 10: deg } (defaults: 7 = lagna+180, 4 = madhyaLagna+180), madhyaLagnaDeg, ayanamshaDeg, ahargana (BigInt|number), ishtakalaGhati, dinamanaGhati (default 30), isDay, vargas: { surya: {

r2(x)lines 219–219
calls nothing in the registry