yantra/patha/ss-graha.js
ग्रह: the five star-planets of the Sūrya-Siddhānta — mean places, the four-step true place, true daily
475 lines · 0 exports
The header, as the file states it
What it loads
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
44 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.
Degrees of a body with `rev` revolutions a yuga, at τ spandas of the turn since the Kali epoch (days/YUGA = τ/(RISINGS·SPT)).
Degrees of a body with `rev` revolutions a kalpa (1.41-1.44), counted from creation (1,955,880,000 years at Kali).
Mean daily motions in minutes a civil day.
Mean places in degrees at `days` (civil days since midnight at Laṅkā at the Kali epoch; a number or BigInt).
2.38: the epicycle at a kendra, from its even-end and odd-end values.
Signed koṭijyā of a kendra (2.30), + from Makara (270°…90°), − from Karka (2.40).
2.39 (+ 2.45): the manda equation in degrees for a kendra (ucca − planet), with its karṇa (used by 7.14 only).
2.38-2.42 (+ 2.45): the śīghra equation in degrees for a kendra (śīghrocca − planet), with its karṇa.
2.43-2.44, 2.56-2.57: the four operations for one planet from its mean places m (one entry of meanPlaces). opts.asakrt (owner, 2026-10-28; the text's own "asakṛt" of 3.20, 5.9, 11.11 — "yāvat sarvaṃ sthirībhavet"): the steps again and again, the first step's śīghra taken from the last manda-true place instead of the mean, until that place stops moving. The first pass is the text's four steps exact
The Sun's equation (degrees) at `days`, for 2.46.
2.46: the instant the planet's places are taken at — `days`, or shifted by the Sun's equation (bhujāntara).
The true place of one planet: longitude (deg, sidereal), latitude (arcmin, north +), and every step.
True places of all five at `days`: { mars: {longitude, latitude, …}, … }.
2.48: the tabular sine-difference of the 225′ step holding the bhuja of a kendra (with Mādhava's sine, 225 × its derivative there).
2.47-2.49: the manda-corrected motion from a mean motion `n` (minutes a day), the kendra's motion `nk`, a kendra and its epicycle: n ± |nk| × difference ÷ 225 × epicycle ÷ 360, + from Karka, − from Makara.
2.47-2.51: true daily motion of a planet at `days`, minutes a day; negative = retrograde (vakra).
The motion of the four-step place itself (central difference over ±h days), minutes a day [measured].
Sign of the speed at t, by the text's rule (default) or by the place's own motion ({ by: "place" }).
2.55: the sign counted from the śīghrocca in which a planet of śīghra-kendra κ stands: (360° − κ) ÷ 30, + 1.
Stations between t1 and t2 (days): { t, kind: "vakra" (turns retrograde) | "margi" (turns direct), kendra (2.53's "caturtheṣu kendrāṃśaiḥ": the fourth operation's śīghra kendra), house (2.55), longitude }. `by`: "place" (the four-step place's own motion, default: its turning points fall in 2.55's signs for all five) or "text" (the motion rule of 2.47-2.51, whose zero comes several degrees earlier
Retrograde spans between t1 and t2: from each "vakra" station to the next "margi" — start, end, days, the kendra at each end (2.53-2.54), the arc of longitude gone backwards, the houses (2.55). Spans cut by t1 or t2 are marked open.
Synodic period in days from the revolution numbers alone: a yuga ÷ |śīghrocca revolutions − planet's|.
── the Moon, for 7.23 (sphuta.js's place; its motion by 2.47-2.49) ──────────────────────────────────────────
Longitude (deg), latitude (arcmin) and true motion (arcmin/day) of a body: a planet or "moon".
7.2-7.5 literally: two longitudes (deg) and daily motions (arcmin/day, negative = retrograde). Returns the days to the conjunction (negative when it is past), whether it is past, and the divisor used ("difference" | "sum").
The conjunction in longitude of bodies a and b near `t0`: 7.2-7.6 repeated until the step is under 1e-7 day. With a bracket [lo, hi] holding one change of sign of the longitude difference, a run of 7.4 that fails to settle inside it (two slow planets near a station, whose motions nearly match) is replaced by halving the bracket: `method` says which.
Every conjunction in longitude between t1 and t2 among `bodies` (default the five; add "moon" for 7.23).
7.13-7.14: the apparent diameter in minutes: viṣkambha × 2R ÷ (manda karṇa + śīghra karṇa) ÷ 15.
7.18-7.23: what the text calls a conjunction of two star-planets, from its separation (7.12) and discs (7.14).
Cara (asus) of a declination given by its signed R-sine, at a palabhā (2.61-2.62).
7.8-7.10: the dṛkkarma of a body at sidereal λ (deg) with latitude (arcmin, north +), at a place of palabhā, at hour angle `hourAngleAsus` (west +), with the ayanāṃśa (deg) for the declinations. The half-day is the body's own, from its true declination (2.58: latitude added when alike). Returns the corrected sidereal λ and the parts.
The meridian's Laṅkā-ascension (asus) at `days` for a place `desantaraDays` east of the prime meridian: the true Sun's ascension + its hour angle, taking the day count as reckoned from midnight and the true Sun lagging the mean by its equation [reading; no obliquity term, as in the text].
7.7-7.12: the conjunction c (from conjunctions/yutiNear) as seen at a place { palabha, desantaraDays }: each body's dṛkkarma at its own hour angle, one 7.4 step to equal corrected longitudes, and the latitudes at that instant.
Mean Jupiter's revolutions since creation at τ spandas of the turn since the Kali epoch, as the exact fraction num/den: 364,220 × (1,955,880,000 years + τ of time) ÷ (4,320,000 years of a yuga) (1.45-1.47, 1.53).
SS 1.55: "dvādaśaghnā guroryātā bhagaṇā vartamānakaiḥ rāśibhiḥ sahitāḥ śuddhāḥ ṣaṣṭyā syurvijayādayaḥ" — Jupiter's revolutions gone × 12, with the signs, cleared of sixties: the years from Vijaya. Exact (BigInt) from mean Jupiter since creation (1.45-1.47). Reading "A" (default, opts.zero 0) [reading]: the signs gone in the current revolution are added, and remainder 0 is Vijaya, the current year
The next instant after `days` at which mean Jupiter enters a sign — where the 1.55 name changes — in civil days since the Kali epoch; closed form, the changes falling 1,577,917,828 ÷ (364,220 × 12) = 361.0267 days apart [theorem].