yantra/patha/ss-udaya.js
उदय: the Sūrya-Siddhānta's rising-times, lagna, the time between two points, kālāṃśa, and the Moon's first
230 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
30 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.28: signed R-sine of the declination of a tropical longitude (north +).
Declination in degrees by the table, signed.
2.60: the day-radius for a declination given by its R-sine: R − versine = jyā(90° − δ).
The palabhā (equinoctial noon shadow of the 12-aṅgula gnomon) of a latitude in degrees, by the table (3.13-3.14 reversed).
The latitude in degrees of a palabhā, by the same table: palabhaOf read backwards, its exact inverse (palabhaOf of the result is the palabhā given), never the sphere's arctan. On the 24 jyās (2.31-2.32) both R-sines are linear inside one 225′ step of φ, and the steps of φ and of 90° − φ fall together (90° is 24 steps), so 12·jyā φ ÷ jyā(90° − φ) = p is solved in closed form on the step i that hold
2.61-2.62: the cara in asus of a declination given by its signed R-sine.
2.61-2.62: the cara of a tropical longitude in asus; positive when the day is longer than 30 ghaṭīs at a northern place.
2.62-2.63: half-day and half-night of a body at a tropical longitude, in asus.
3.42-3.43: the Laṅkā risings of Meṣa, Vṛṣa, Mithuna in asus, from 1397 (or 3.44's stated 1670, 1795, 1935).
3.44-3.45: the twelve risings at a place of the given palabhā (0 at Laṅkā), Meṣa first, in asus; they add to 21,600.
Asus from tropical Meṣa 0° to λ by risings `rs`, in proportion within a sign (3.46).
The tropical longitude whose ascension by `rs` is `asus`.
3.50: asus from λ1 forward to λ2 — bhogya of λ1's sign + whole signs + bhukta of λ2's.
9.5: kālāṃśa between two points (east: as given; west: pass both advanced by 180°).
3.46-3.48, literally: the lagna (tropical) from the Sun (tropical) at the instant and the asus since sunrise.
The asus since the Sun rose, from the meridian: the Sun's hour angle (meridian − Sun) + its half-day. The Sun's right ascension by 3.42 at its own point (default), or with opts.ascension "linear" by the Laṅkā risings in proportion within the sign (3.46's way).
The lagna from the meridian's asus (its right ascension × 60): 3.46-3.48 after `sinceSunrise`, the Sun placed the same linear way so that at sunrise the lagna is the Sun.
3.49: the madhya-lagna (tropical) from the meridian's asus.
3.42's rule taken at the point itself, not interpolated within a sign: the right ascension (asus from Meṣa 0°) of a tropical longitude — the arc of jyā(bhuja) × dyujyā(90°) ÷ dyujyā(bhuja), placed by quadrant [reading: 3.42 applies it at the sign ends; nothing in the rule is particular to them].
Asus of the turn at which a body rises (east) or sets (west), on the frame where the meridian of Meṣa 0° is 0: its right ascension ∓ its own half-day, 15 ghaṭīs + the cara of its OWN declination (2.62-2.63). `polarLam`: the tropical foot of its hour circle on the ecliptic; `declDeg`: its declination in degrees, north +. The text gives a star its own day by its declination with its latitude (2.63)
A body with ecliptic latitude: the foot of its hour circle by 7.10's āyana part, its true declination by 2.58 (the ecliptic declination with the latitude: summed when alike, the difference otherwise).
A junction star by its polar coordinates (ch.8): the dhruvaka is already the foot of its hour circle, and its declination is the dhruvaka's with the polar latitude (2.58, 2.63).
9.5 by the bodies' own horizons: signed kālāṃśa of a body from the Sun (east: + when it rises first; west: + when it sets after).
Solve f(λ) ≡ target (mod a turn) for a monotonic f of the tropical longitude: 1° scan, then bisection.
The lagna by each point's own horizon: the tropical λ whose own rising — its right ascension less its half-day (3.42 at the point, 2.61-2.63) — is the meridian's asus less nothing: RA(λ) − 15 ghaṭīs − cara(δ(λ)) = meridian. The same geometry as 3.46-3.48 without their proportion within a sign.
The madhya-lagna by 3.42 at the point: the λ whose right ascension is the meridian's asus.
7.8-7.10 at the horizon: the longitude (tropical, degrees) of the ecliptic point that rises or sets with a body of latitude `latArcmin` (north +) at λ. Returns the corrected longitude and both parts in arcminutes.
10.1-10.4: at sunset after a conjunction — Sun and Moon tropical (degrees), the Moon's latitude (arcmin, north +), the daily motions (arcmin a day), the palabhā. Returns the asus from sunset to moonset (iterated), the kālāṃśa, and whether the Moon is seen (≥ 12 kālāṃśa).