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

ध्रुव, the fixed point of the sovereign (vedha-yantra) engine.

140 lines · 0 exports

प्रमाण: पाठ SS 2.28 (ε), 1.27 (R) and the text's fixed numbers · गणित]
लेख · the header

The header, as the file states it

dhruva.js — ध्रुव, the fixed point of the sovereign (vedha-yantra) engine. [प्रमाण: पाठ SS 2.28 (ε), 1.27 (R) and the text's fixed numbers · गणित] The Sūrya-Siddhānta's sky: "bhacakraṃ dhruvayor baddham … paryety ajasram" — the star-wheel is bound to the two dhruvas and turns without pause, the planets' orbits bound to it (SS 12.73). The elevation of the dhruva is the measure of where one stands (12.72; 12.43-44). The gola has a rod through its centre for the axis (13.4). The junction stars of ch.8 are given as DHRUVAKA and VIKṢEPA: the dhruvaka is the point of the ecliptic cut by the circle drawn from the dhruva through the star, the vikṣepa the arc of that circle from the ecliptic to the star — and 8.12 orders both to be checked on the gola. So the whole space frame hangs from the dhruva, as the time frame hangs from its turn (kala-dvara.js). What is fixed is the dhruva POINT, the axis of the turn. A star near it is not exactly on it: it circles the point once a turn. So this module finds the dhruva from observations instead of assuming a star sits on it: • latitude = the dhruva's elevation = the mean of a circumpolar star's upper and lower meridian altitudes; • true north = the midpoint of its two greatest elongations; • obliquity and latitude from the two solstitial noon zenith distances. These are exact (rational arcseconds). The sphere geometry (polar ↔ equatorial ↔ ecliptic) is trigonometric and floating-point: it is sphuṭa-layer arithmetic, a certificate within its tolerance, not a theorem. Obliquity: SS 2.28 gives the sine of the greatest declination as 1397 on R = 3438. That is the default; an owner's measured value replaces it through the `epsilon` argument. No imports, nothing from any modern source. Browser: window.Dhruva; node: module.exports.
आवश्यक · requires

What it loads

nothing

required by
निर्यात · exports

What it exports

पाठ · 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 12.73verse
    bhacakraṃ dhruvayorbaddhaṃ ākṣiptaṃ pravahānilaiḥ । paryetyajasraṃ tannaddhā grahakakṣā yathākramam ।।
नलिका · channels

The channels it runs in

not on a channel
कार्य · the functions

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.

norm(x)lines 30–30
big(x, what)lines 32–36
calls nothing in the registry
called by nothing in the registry

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°

calls nothing in the registry
called by nothing in the registry

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

calls nothing in the registry
called by nothing in the registry

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

calls nothing in the registry
called by nothing in the registry
fin(x, what)lines 73–76

── 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 (α, δ).

calls fin, upTo90, eps, norm
called by eclipticToPolar

Equatorial (α, δ) → ecliptic (λ, β).

calls fin, upTo90, eps, norm
called by polarToEcliptic

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.

calls fin, eps, norm
called by polarToEcliptic

Equatorial → polar (dhruvaka, vikṣepa): the ecliptic point with the same α, and the arc from it along the circle.

calls fin, upTo90, eps, norm
called by eclipticToPolar

Ecliptic → polar: what SS 8.14-8.15 need to compare a planet with a star's dhruvaka.

called by nothing in the registry

Polar → ecliptic: a star's ecliptic place, which (unlike its polar place) does not depend on where the dhruva points.

called by nothing in the registry
meridianAltitudes(delta, latitude)lines 129–132exported

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

calls upTo90
called by nothing in the registry