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

प्रमाण: भारतीय-रूप·पुनर्मापित (the frame: ε, ayanāṃśa, the star-rotation, lagna and sunrise — the text's forms re-measured, udaya-bija.json) · दृक् for the measurement

145 lines · 19 exports

प्रमाण: भारतीय-रूप·पुनर्मापित (the frame: ε, ayanāṃśa, the star-rotation, lagna and sunrise — the text's forms re-measured, udaya-bija.json) · दृक् for the measurement
लेख · the header

The header, as the file states it

प्रमाण: भारतीय-रूप·पुनर्मापित (the frame: ε, ayanāṃśa, the star-rotation, lagna and sunrise — the text's forms re-measured, udaya-bija.json) · दृक् for the measurement udaya-bija.js — उदय-बीज: the frame every lagna, sunrise and sāyana place stands on, as the text's own numbers with measured bīja (the paramparā's way, as for the grahas in bija-samskara.js): parama-krānti ε — the text's 24° (SS 2.28; its jyā 1397) + bīja, measured from the Sun's declination; ayanāṃśa — the text's libration of the equinox (SS 3.9–3.12: ±27°, 600 turns in a mahāyuga, zero in Kali 3600) + bīja; star-rotation — the meridian's place: the text's star-days (SS 1.34: 1,582,237,828 in 1,577,917,828 civil days; at the Kali start the mean Sun on Laṅkā's lower meridian) + bīja. Each bīja is a cubic in centuries from the measured window's middle plus the periodic nodding of the equinox (arguments: the Moon's node Ω, twice the Sun, twice the Moon, 2Ω — the text's means with their measured bīja), every amplitude in udaya-bija.json, measured against the owner's sky 1850–2150 (rms: ε 0.03″, ayanāṃśa 0.12″, rotation 2″). On it: lagna and madhya-lagna (the sphere's exact relations in R-sine form), and sunrise/sunset of any Sun the caller gives (two conventions: the text's — the Sun's centre on the true horizon; and the upper limb with 34′ refraction). Outside the measured window the measured rates carry on to ±5 centuries; the curvature and the nodding's drift are held. The ayanāṃśa stands on the text's whole libration (D23): its measured bīja is a shift of the libration's phase, so beyond the rising segment (2299 CE) it turns with the text and stays within ±27° (+ the nodding) at every epoch. Every sine and arc by Mādhava (carried inside this file, identical to madhava-ganita.js). Time: civil ahargaṇa (days since Laṅkā midnight at the Kali start). Self-contained: this file and udaya-bija.json travel together to every engine.
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

epsilonayanamshaayanamshaIAElibrationAyanamsharotationframemeanFramelagnaequatorialsunRiseSettextAyanamshasegmentAyanamshatextRotationnodArgsdesignSIDEREAL_RATEHORIZONrecordrec
पाठ · the verses it cites

SS verses named in the header

  • SS 2.28verse
    paramāpakramajyā tu saptarandhraguṇendavaḥ । tadguṇā jyā trijīvāptā taccāpaṃ krāntirucyate ।।
  • SS 3.9verse
    triṃśatkṛtyo yuge bhānāṃ cakraṃ prākparilambate । tadguṇādbhūdinairbhaktāddyugaṇādyadavāpyate ।।
  • SS 1.34verse
    bhānāṃ aṣṭākṣivasvadritridvidvyaṣṭaśarendavaḥ । bhodayā bhagaṇaiḥ svaiḥ svairūnāḥ svasvodayā yuge ।।
नलिका · channels

The channels it runs in

कार्य · the functions

Every function, what it calls, who calls it

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

SQRT3(()lines 24–24

── Mādhava's sine and arc, carried inside this file so that every engine can hold the same frame unchanged ──────────────── (identical to madhava-ganita.js: the Kaṭapayādi sine on R = 3437′44″48‴; the arc series with the tri-karaṇī step)

calls nothing in the registry
called by nothing in the registry
PI(()lines 25–25
calls nothing in the registry
called by nothing in the registry
rsinQuadrant(s)lines 28–28
calls nothing in the registry
called by jya
jya(deg)lines 29–29
called by kojya
kojya(deg)lines 30–30
calls jya
called by nothing in the registry
arcSeries(z)lines 31–31
calls nothing in the registry
called by arctan
arctan(z)lines 32–32
calls arcSeries
called by capa
capa(y, x)lines 33–33
calls arctan
called by capaOfJya
capaOfJya(s)lines 34–34
calls capa
called by nothing in the registry
mod(x, m)lines 39–39
calls nothing in the registry
wrap(d)lines 40–40
calls mod
called by sunRiseSet, solve
frac(x)lines 41–41
calls nothing in the registry
turns(rev, t)lines 42–42
calls nothing in the registry
called by nodArgs
rec()lines 45–45exported
calls nothing in the registry
textRotation(t)lines 50–50exported
calls mod, frac
textAyanamsha(t)lines 52–55exported

The text's ayanāṃśa (SS 3.9–3.12): a triangle of ±27° over 7200 years, zero in Kali 3600; years are the text's.

calls mod
segmentAyanamsha(t)lines 59–59exported

The frame's base: the text's annual motion of the equinox (54″, the libration's rising segment Kali 3600–5400 = 499–2299 CE, the one the measurement sits on) carried straight on — a frame measured in 1850–2150 cannot follow a turning it never saw. Identical to textAyanamsha inside 499–2299 CE.

calls nothing in the registry
called by nothing in the registry
splitBija(b, c)lines 68–68
calls nothing in the registry
called by ayanamshaIAE, frame
nodArgs(t)lines 70–74exported

The nodding's arguments: the text's means of the Moon's node, the Sun and the Moon, with their measured bīja (degrees).

calls rec, mod, lin, frac, turns
called by design
lin(v, b)lines 72–72
calls mod
called by nodArgs
design(t)lines 75–84exported
dot(x, c)lines 85–85
calls nothing in the registry
RD(t)lines 87–87

parama-krānti (degrees) at civil ahargaṇa t.

calls nothing in the registry
epsilon(t)lines 88–88exported
calls RD, dot, rec, design
ayanamshaIAE(t)lines 90–90exported

ayanāṃśa (degrees) at civil ahargaṇa t.

ayanamsha(t)lines 91–91exported
rotation(t)lines 93–93exported

the Greenwich meridian's sāyana place (degrees; its right ascension) at civil ahargaṇa t.

meanFrame(t)lines 95–99exported

the mean parts (the cubic bīja only, without the nodding): { eps, ayan, rot } — the nodding is the difference from frame(t).

called by nothing in the registry
lagna(t, lat, lonEast)lines 104–110exported

Lagna and madhya-lagna (nirayaṇa, degrees) at civil ahargaṇa t for latitude φ and longitude east λ (degrees).

Right ascension and declination (degrees) of a nirayaṇa place (λ, β) at civil ahargaṇa t.

Sunrise and sunset (civil ahargaṇa) of the civil day that starts at local midnight `dayStart`, at (lat, lonEast), for the Sun the caller gives: sunAt(t) → { lam, beta } nirayaṇa degrees. convention 'text' (default: the centre on the true horizon) or 'refracted'. Iterates the hour-angle relation (the asakṛt way) until the instant stops moving. null at polar day/night.

solve(sign)lines 128–140
called by sunRiseSet