yantra/purnanka-graha-engine.js
प्रमाण: पाठ SS ch. 1–2 (mean motions, the four operations, the epicycles, the latitudes) · गणित (the text's integers on the lattice; asakṛt) · भारतीय-रूप·पुनर्मापित (the patha tier's bound means and re-measured text numbers, patha-bandha.json)
1262 lines · 31 exports
The header, as the file states it
What it loads
- yantra/spanda-lattice.jsmodule
- yantra/meridian.jsmodule
- yantra/_records.jsmodule
- yantra/purnanka-bandha-tantra.jsmodule
- yantra/ss8-dhruva.jsmodule
- yantra/bija-samskara.jsmodule
- yantra/rahu-ketu-sandhi.jsmodule
What it exports
BHAGANASEPICYCLESCANONICAL_MANDOCCAS_ARCMINKALPA_APSIS_REVSKALPA_NODE_REVScomputeKarnaSSPARAMA_VIKSHEPA_ARCMINCANONICAL_GRAHA_NODES_ARCMINCOMBUSTION_LIMITS_DEGSS_JYA_TABLER_SINEssSineRationalssArcSineRationalmadhavaSineRationalmeanLongitudeArcminmandaphalaArcminsighraphalaArcmincomputeRawSpashtaLongitudecomputeAllSpashtaGrahasPathapathaBandhapathaOptionscomputeVikshepaSSdetectGrahaYuddhacomputeSpashtaGrahaSScomputeAllSpashtaGrahasBijacomputeAllSpashtaGrahasSSgreatInequalityHarmonicsvenusPentagramResonancemercuryRelativisticPrecessionsaturnSadeSatiMetricsjupiterPhysicalDynamicsSS verses named in the header
none in the registry
The channels it runs in
Every function, what it calls, who calls it
28 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.
Exact rational linear interpolation of the 24-entry SS sine table. arcMinutes in [0, 5400] (0° to 90°).
Mādhava's 5-term rational sine series (Kerala 14th c., encoded in Kaṭapayādi). Exact radius R = 3437'44"48''' = 12,375,888 thirds of arc.
Computes the manda equation of centre according to SS 2.34–39.
Exact rational inverse sine interpolation using the 24-entry SS Jya table. Given Jya J in [0, 3438'], returns the arc in arcminutes [0, 5400'] (0° to 90°).
Computes Śīghraphala according to Sūrya-Siddhānta 2.39–42 on the pure integer Spanda lattice. @param {string} grahaKey - 'mars', 'mercury', 'jupiter', 'venus', 'saturn' @param {Rational|number|BigInt} planetArcminQ - Longitude of planet or Mandaspaṣṭa in arcmin [0, 21600) @param {Rational|number|BigInt} sighroccaArcminQ - Longitude of Śīghrocca in arcmin [0, 21600)
Computes the raw true geocentric longitude in arcminutes [0, 21600) without computing higher-order kinematic derivatives.
Computes celestial latitude / Vikṣepa (विक्षेप) according to SS 2.56–58.
Graha-yuddha (SS 7.18–7.23): the kinds of conjunction of two star-planets, from their separation (7.12) and discs (7.13–7.14) among the 5 Star Planets (Mars, Mercury, Jupiter, Venus, Saturn).
Karṇa (the hypotenuse) of the body's epicycle triangle, SS 2.39–2.42, as a ratio to R = 3438. Sun, Moon : manda-karṇa = √((R ± koṭiphala)² + bhujaphala²), the phalas from the manda epicycle (2.39). Tārāgraha : śīghra-karṇa = √((R ± koṭiphala)² + dohphala²) on the manda-corrected place (2.40–2.42). Rāhu/Ketu : no epicycle; the node sits on its own kakṣyā (SS 12.88) — ratio 1. Text arithmetic only:
Computes the true geocentric position (Spaṣṭa Graha) of any graha according to the full Sūrya-Siddhānta 4-step correction (चतुर्वार संस्कार / Catvāraḥ Saṃskārāḥ, SS 2.43–45): For Sun & Moon: Mandaphala (Equation of Centre). For Rāhu & Ketu: Westward nodal regression. For Mars, Mercury, Jupiter, Venus, Saturn (Tārāgrahas): Step 1: 1/2 Śīghraphala applied to Mean Graha Step 2: 1/2 Mandaphala (from s
Computes all 9 true planets for an Ahargaṇa, along with Graha Yuddha analysis.
The text tier's options: the bound numbers and the asakṛt steps, unless options.patha === 'shuddha' (the text's own numbers).
The nine grahas on the text tier: the text's formulas; by default on its re-measured, bound numbers (patha-bandha.json).
883-Year Great Inequality Harmonic for Jupiter and Saturn. Instead of unphysical polynomial T, T^2 regressions that explode at window edges, this models the 2·L_J − 5·L_Sa long-period inequality as a bounded sine wave (research harmonic; not in the text; opt-in). Library sine here and in venusPentagramResonance: research diagnostics, never on the served bīja path (which is Mādhava-only).
Venus 8-Year 13:8 Orbital Resonance & Pentagram Geometry.
Mercury Relativistic Perihelion Precession (Einstein 1915).
Saturn Sāḍe Sātī Exact Chronometric Derivation.
Jupiter physical dynamics (owner physics, PROVENANCE §3): oblateness and the 1:2:4 resonance of its three inner moons.