yantra/patha/ss-grahana.js
ग्रहण: the lunar and solar eclipse of the Sūrya-Siddhānta (chapters 4, 5 and 6.13), by the text's own
567 lines · 0 exports
The header, as the file states it
What it loads
- yantra/patha/sphuta.jsmodule
- yantra/patha/spanda-ganita.jsmodule
- yantra/patha/ss-udaya.jsmodule
- yantra/patha/kala-dvara.jsmodule
What it exports
SS verses named in the header
none in the registry
The channels it runs in
Every function, what it calls, who calls it
45 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.
2.47-2.49: true daily motions (arcmin per civil day) at τ spandas of the turn; the node has only its mean motion.
True daily motions at days t since the Kali epoch.
4.1-4.5 from the true motions b: discs of Sun and Moon and the Earth's shadow at the Moon, in arcminutes. opts.via: "bhagana" (4.2b, default) or "kaksha" (4.3a) to carry the Sun's diameter to the Moon's orbit.
2.57 with 1.68: the Moon's latitude in arcminutes (north +) from the Moon and its node (degrees).
4.10: the part covered = half the sum of the eclipsed's and the eclipser's measures − the latitude.
4.11: an eclipse is possible when the latitude is below the half-sum; total when the covered part reaches the eclipsed.
4.12-4.13: the two padas and the half-durations in nāḍīs (sixtieths of the day the motions are counted in). The vimardārdha exists only in a total eclipse (4.17), which is exactly when its pada is real [theorem].
The pūrṇimā ("purnima", 15) or amāvāsyā ("amavasya", 30) nearest civil day `nearDays`: spanda-ganita's exact first spanda of the turn at which Sun and Moon are equal (or half a circle apart) — SS 4.7; 4.8 reaches the same spanda.
3.13-3.14: akṣajyā and lambajyā from the palabhā and its hypotenuse; their arcs are "always south".
Asus of the meridian (its right ascension × 60) at t: mean Sun (sāyana) + its hour angle from mean time, as panchanga.js.
2.60-2.63 for a krānti-jyā: the half-day in asus at a palabhā.
5.3-5.11 at days t for the site, with the true Sun's sidereal longitude `sunSid` (degrees). opts.asphuta: 5.7a's approximate dṛkkṣepa and dṛggati (the natāṃśa's sine and cosine). opts.stated: 3.44's risings.
5.3-5.11 at t for a site, with the true Sun of sphuta.js at t.
5.15-5.17 as worded: the harijāntara (ghaṭikās) to apply to the half-duration of `side` (−1 sparśa, +1 mokṣa), from the contact's lambana Lc and the middle's Lm (signed, + east). One kapāla: the difference of the magnitudes, added in the normal case (east: sparśa's greater, mokṣa's smaller; west: the reverse), subtracted otherwise; two kapālas: the two joined and added.
One side of the eclipse: the half-duration `kind` ("sthiti" or "vimarda") recomputed with the latitude at the contact again and again (4.14-4.15) and, for the Sun, the harijāntara (5.14-5.17). mode "fixed": the lambana and latitude are taken at the apparent contact until nothing changes [reading of "prāgvat … punaḥ"]; "once": 5.14 as a single step at the tithi-end ∓ the mean half-duration.
── the eclipse ───────────────────────────────────────────────────────────────────────────────────
4.14: places at another moment by the motions; 4.8, 4.15: the node the other way ("anyathā"), being westward (1.33)
The eclipse's state of the eclipsed body at t: sāyana longitude, hour angle (asus, west +), half-day and unnata.
The clock at the site: civil date and local mean time; the ghaṭīs since sunrise and to sunset in nāḍīs of the turn (1.11-1.12, what a kapāla calibrated on the stars counts), and in the Sun's own asus (its hour angle, 2.59-2.62), which run about 59 asus a day slower.
The lunar eclipse at the pūrṇimā nearest `nearDays` (SS 4). A site adds the horizon, the valana and the aṅgulas.
The solar eclipse at the amāvāsyā nearest `nearDays` for a site (SS 4 with 5). opts.nati: "5.10" (default), "5.11" (÷ 70) or "5.11b" (× 49 ÷ R); opts.contactLambana: "fixed" (default) or "once"; opts.asphuta: 5.7a.
4.18-4.21 (4.19 for the Sun): the grāsa (arcminutes) of an eclipse at days t.
4.22-4.23: the instant on `side` ("sparsha" before the middle, "moksha" after) at which the grāsa is `g` arcminutes. The latitude is that of the instant found, recomputed until fixed. null if the grāsa is never reached.
── 4.24-4.26: valana and aṅgulas ───────────────────────────────────────────────────────────────── this build's own trigonometry (its sine and arc; no other)
right ascension and declination (degrees) of a tropical λ, latitude β (degrees), by the build's sine
4.24-4.25: the valana of the eclipsed body at t — ākṣa and āyana in degrees (north +), their join, and jyā ÷ 70 aṅgulas. opts.valana: "sphere" (default: the exact angles, see the header) or "text" (4.24-4.25 as written).
Chapter 6's figure, exactly: the two discs (radii in arcminutes) with their centres the śravas apart — the common chord and the covered part of the eclipsed disc by area; beside the text's linear grāsa (4.20). null when they do not meet.
4.26: the eclipse's measures in aṅgulas at t, the minutes DIVIDED by the phala (chindyāt). null below the horizon. opts.reading: "adhyardha" (default), "dinamadhyardha" or "dinardha" (ANGULA_READINGS).