yantra/patha/dhruva.js
ध्रुव, the fixed point of the sovereign (vedha-yantra) engine.
140 lines · 0 exports
The header, as the file states it
What it loads
nothing
What it exports
SS verses named in the header
- SS 2.28verseparamāpakramajyā tu saptarandhraguṇendavaḥ । tadguṇā jyā trijīvāptā taccāpaṃ krāntirucyate ।।
- SS 12.73versebhacakraṃ dhruvayorbaddhaṃ ākṣiptaṃ pravahānilaiḥ । paryetyajasraṃ tannaddhā grahakakṣā yathākramam ।।
The channels it runs in
Every function, what it calls, who calls it
15 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.
A circumpolar star's meridian altitudes above the north horizon at upper and lower transit (integer arcseconds) → the dhruva's elevation (= latitude, SS 12.72) and the star's distance from the dhruva. Exact rationals {num, den}. Both altitudes are read from the north point of the horizon, as this convention says: a star whose upper transit passes south of the zenith reads more than 90° there (100°
Azimuths of a circumpolar star at its eastern and western greatest elongation, read from a provisional north line (east positive, integer arcseconds) → where true north lies on that scale. Exact rational, for any integers (the scale is the observer's own); finite integers only (TypeError otherwise).
Signed noon zenith distances of the Sun (south of the zenith positive, integer arcseconds) at the two solstices → obliquity and latitude. Exact rationals. Works where the summer Sun passes north of the zenith (latitude < obliquity). Physical domain, refused otherwise (RangeError): 0° < ε < 90° (the winter reading the larger) and |latitude| ≤ 90°.
── sphere geometry about the dhruva (degrees; sāyana longitudes) ────────────────────────────── Inputs must be finite numbers (TypeError), latitudes and declinations within ±90° and ε (if given) inside (0°, 90°) (RangeError); inside that domain the arithmetic is unchanged.
Ecliptic (λ, β) → equatorial (α, δ).
Equatorial (α, δ) → ecliptic (λ, β).
Polar (dhruvaka λp, vikṣepa bp) → equatorial. The star and its dhruvaka point share the circle through the dhruva, so they share α; along that circle arcs add, so δ = δ(point) + vikṣepa.
Equatorial → polar (dhruvaka, vikṣepa): the ecliptic point with the same α, and the arc from it along the circle.
Ecliptic → polar: what SS 8.14-8.15 need to compare a planet with a star's dhruvaka.
Polar → ecliptic: a star's ecliptic place, which (unlike its polar place) does not depend on where the dhruva points.
Meridian altitudes of a body of declination δ at latitude φ: upper transit (measured from the horizon on the side it culminates) and lower transit (above the north horizon; negative = below). δ and φ within ±90°.