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

gurutva/gurutva.js

गुरुत्व: the Moon by gravitation, with every number taken from the Sūrya-Siddhānta.

213 lines · 0 exports

लेख · the header

The header, as the file states it

gurutva.js — गुरुत्व: the Moon by gravitation, with every number taken from the Sūrya-Siddhānta. The law: the LEADING TERM ONLY of the owner's n-body force law (block 1 of the Bhārat Sovereign Engine's dop853-nbody.js), in its tidal limit — the Earth's pull on the Moon and the Sun's tide — integrated by the owner's Gauss–Radau method (radau.js). This is the text-only tier: nothing but the text enters. The owner's COMPLETE law (all eight blocks: full n-body with the planets, EIH, J2, the lunar figure, the tidal acceleration T = −ṅa/3) runs in gurutva-purna.js with the law's own borrowed constants; against this file it moves the apogee and node by about 5″ a year and adds the parallactic term (−2.1′), see corpus/gurutva/purna.json. The numbers: nothing but the text. In the tidal limit the Sun acts on the Moon only through n′² (a′/R)³, and by Kepler's third law n′² a′³ is the Sun's gravitational parameter — so the Sun's mass and distance are not needed, only its mean motion and the shape of its orbit, both of which the text gives: n, n′ the Moon's and Sun's revolutions in a yuga (SS 1.29-1.30) over its civil days (1.37); e′ from the Sun's manda equation (2.34-2.39), its first harmonic = 2e′ − e′³/4; the Sun's apogee, and the Moon's mean place, apogee and node at the epoch (1.41-1.47 via sphuta.js); the Moon's equation and greatest latitude (2.34-2.39, 270′ of 1.68) — read as SYZYGY values, the places at which the text's Moon was fixed by eclipses: at a syzygy the evection subtracts from the equation of centre and the 2D−F term from the inclination, so the fit sets (sin M) − (sin 2D−M) to the text's equation and (sin F) − (sin 2D−F) to 4°30′ [reading]. What is NOT input, and comes out of Newton's law: how fast the apogee and the node turn, and every periodic term the text does not have (evection, variation, annual equation, reduction to the ecliptic, and the latitude terms). The apogee and node rates can then be set beside the text's 488,203 and 232,238 revolutions in a yuga (1.33). Left out, and why: the parallactic inequality needs the ratio of the Moon's distance to the Sun's, and the text's kakṣās are orbits of equal linear speed, not distances; the planets' pulls need masses the text does not give. Frame: the text's sidereal ecliptic, fixed. Time: civil days since the Kali epoch. Browser: window.Gurutva (needs Sphuta, Radau); node: module.exports.
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

पाठ · the verses it cites

SS verses named in the header

  • SS 1.29verse
    yuge sūryajñaśukrāṇāṃ khacatuṣkaradārṇavāḥ । kujārkiguruśīghrāṇāṃ bhagaṇāḥ pūrvayāyinām ।।
नलिका · channels

The channels it runs in

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

Every function, what it calls, who calls it

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

mod(a, m)lines 33–33
calls nothing in the registry
wrapPi(a)lines 34–34
calls mod
called by unwrap
firstHarmonic(pair)lines 40–44exported

First harmonic (degrees) of the text's manda equation as a function of the mean anomaly from perigee.

calls mod
called by nothing in the registry
E_SUN(()lines 46–46
calls nothing in the registry
called by nothing in the registry
madh(t)lines 51–51exported
calls nothing in the registry
called by sunModel
sunModel(epoch, eSun = E_SUN)lines 54–64exported

── the force ─────────────────────────────────────────────────────────────────────────────────

calls madh
called by nothing in the registry
makeAccel(mu, sun)lines 66–74exported

Acceleration of the Moon about the Earth: −μ r/r³ + n′²(a′/R)³ [3(R̂·r)R̂ − r].

calls nothing in the registry
called by nothing in the registry
toState(el, mu)lines 77–85exported

── elements ↔ state ──────────────────────────────────────────────────────────────────────────

calls nothing in the registry
called by nothing in the registry
osculating(x, v, mu)lines 86–95exported
calls nothing in the registry
called by nothing in the registry
NAME(m)lines 103–103
calls nothing in the registry
called by nothing in the registry
solve(A, b)lines 105–115
calls nothing in the registry
called by lsq
lsq(rows, y)lines 116–121
calls solve
called by linfit
unwrap(a)lines 122–122
calls wrapPi
called by nothing in the registry
linfit(t, y)lines 123–123
calls lsq
called by nothing in the registry

Integrate a Moon from osculating elements at `epoch` for `days`, and reduce it to mean elements and series.

calls nothing in the registry
called by nothing in the registry
calls nothing in the registry
called by nothing in the registry
derive(opts = {})lines 165–165exported

Fit the Moon's starting state to the text, then integrate `years` and report what gravitation adds.

calls nothing in the registry
called by nothing in the registry
impliedInclination(opts = {})lines 203–203exported

The inclination that the text's own apogee rate implies: the syzygy latitude for which the derived apogee turns 488,203 times in a yuga (secant), and the node rate the same orbit then gives.

calls nothing in the registry
called by nothing in the registry