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

प्रमाण: पाठ SS ch. 3 (the risings: cara, lagna, the ascensional differences) · गणित
लेख · the header

The header, as the file states it

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 प्रमाण: पाठ SS ch. 3 (the risings: cara, lagna, the ascensional differences) · गणित evening (candra-darśana), by the text's own arithmetic — the sine table and the greatest declination 1397 — not by spherical trigonometry. 2.28 the R-sine of the greatest declination is 1397. 2.60 the day-radius (dyujyā) = R − the versed sine of the declination: on the table, jyā(90° − δ). 2.61 kṣitijyā = krāntijyā × palabhā ÷ 12; carajyā = kṣitijyā × R ÷ dyujyā; its arc in minutes is the cara in asus (2.62). 2.62-2.63 half-day = 15 ghaṭīs (5400 asus) + cara when the declination is northern, − when southern. 3.42-3.43 the Laṅkā risings of the first three signs: the arcs of jyā(30°·k) × dyujyā(90°) ÷ dyujyā(30°·k), differenced. With 1397 they are 1670, 1795, 1934-1935 — 3.44 states 1670, 1795, 1935 (`stated: true` uses those). 3.44-3.45 at a place: Meṣa…Mithuna less the cara-khaṇḍas; Karka…Kanyā the same three reversed, plus them; Tulā…Mīna the six in reverse order. 3.46-3.48 lagna: from the Sun at the instant and the asus since sunrise, take away the Sun's bhogya, then whole signs; the remainder × 30 ÷ the rising of the sign reached gives its degrees. 3.49 madhya-lagna: the meridian's asus from Meṣa 0° turned into an arc by the Laṅkā risings. 3.50 the time between two points of the ecliptic: bhogya + whole signs + bhukta. 9.5 kālāṃśa = those asus ÷ 60; for the western horizon both points are advanced by six signs. 7.8-7.10 dṛkkarma, at the horizon (nata = half-day, so 7.8's factor is 1): ākṣa = latitude′ × palabhā ÷ 12, for a northern latitude subtracted in the east and added in the west (7.9); āyana = latitude′ × the declination in degrees of (λ + 90°), in seconds, added when latitude and that declination point opposite ways, subtracted when alike. 10.1-10.4 the Moon is seen in the west once Sun and Moon are 12 kālāṃśa apart "as before" (720 asus); in the bright half the Moon sets that many asus after the Sun, found by advancing both by their daily motions and recomputing until the asus stop changing. Every longitude here is tropical (sāyana): 3.10 — "from the planet corrected by the ayanāṃśa follow declination, shadow, half-day and the rest". Rising times are asus of the star-wheel's turn (21,600 to a turn; a ghaṭī is 360). The text interpolates linearly within a sign (3.46, 3.48); that is the text's lagna, not the sphere's. How far it is from the sphere is measured in ss-udaya.test.js. Requires sphuta.js (the table) only. withSine("madhava"): the same with sphuta.js's Mādhava sine on R = 3438 in place of the table. Browser: window.SSUdaya (needs Sphuta); node: module.exports.
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

पाठ · the verses it cites

SS verses named in the header

none in the registry

नलिका · channels

The channels it runs in

कार्य · the functions

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.

arcOf(x)lines 40–40
calls nothing in the registry
krantiJya(lam)lines 43–43exported

2.28: signed R-sine of the declination of a tropical longitude (north +).

calls nothing in the registry
kranti(lam)lines 45–45exported

Declination in degrees by the table, signed.

dyujya(kj)lines 47–47exported

2.60: the day-radius for a declination given by its R-sine: R − versine = jyā(90° − δ).

palabhaOf(lat)lines 49–49exported

The palabhā (equinoctial noon shadow of the 12-aṅgula gnomon) of a latitude in degrees, by the table (3.13-3.14 reversed).

calls nothing in the registry
latitudeOfPalabha(p)lines 56–69exported

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

calls palabhaOf
called by nothing in the registry
caraOfKrantiJya(kj, palabha)lines 71–74exported

2.61-2.62: the cara in asus of a declination given by its signed R-sine.

calls dyujya, arcOf
caraAsus(lam, palabha)lines 76–76exported

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.

halfDay(lam, palabha)lines 78–78exported

2.62-2.63: half-day and half-night of a body at a tropical longitude, in asus.

lankaRisings(opts)lines 81–86exported

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).

called by risings
risings(palabha, opts)lines 88–94exported

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.

ascension(lam, rs)lines 96–100exported

Asus from tropical Meṣa 0° to λ by risings `rs`, in proportion within a sign (3.46).

longitudeOfAscension(asus, rs)lines 102–106exported

The tropical longitude whose ascension by `rs` is `asus`.

intervalAsus(l1, l2, rs)lines 108–108exported

3.50: asus from λ1 forward to λ2 — bhogya of λ1's sign + whole signs + bhukta of λ2's.

kalamsa(l1, l2, rs)lines 110–110exported

9.5: kālāṃśa between two points (east: as given; west: pass both advanced by 180°).

called by nothing in the registry

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.

called by nothing in the registry
madhyaLagna(meridianAsus, opts)lines 134–134exported

3.49: the madhya-lagna (tropical) from the meridian's asus.

called by nothing in the registry
rightAscension(lam)lines 140–144exported

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).

called by nothing in the registry

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).

called by nothing in the registry

Solve f(λ) ≡ target (mod a turn) for a monotonic f of the tropical longitude: 1° scan, then bisection.

calls mod
lagnaOwn(meridianAsus, palabha)lines 186–186exported

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.

called by nothing in the registry
madhyaLagnaOwn(meridianAsus)lines 188–188exported

The madhya-lagna by 3.42 at the point: the λ whose right ascension is the meridian's asus.

called by nothing in the registry

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.

calls kranti, mod
called by moonAfterSunset
moonAfterSunset(st, opts)lines 202–223exported

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).

called by nothing in the registry