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

the owner's COMPLETE n-body force law, with every starting state taken from the Sūrya-Siddhānta.

166 lines · 15 exports

लेख · the header

The header, as the file states it

gurutva-purna.js — the owner's COMPLETE n-body force law, with every starting state taken from the Sūrya-Siddhānta. The law is the owner's, unchanged: dop853-nbody.js `evalRhs` (Bhārat Sovereign Engine) — 1 Newtonian n-body (the Sun's full differential pull, so the parallactic inequality too, and the planets); 2 EIH first post-Newtonian terms (Moyer 4-26), which carry the geodetic (de Sitter) precession of the lunar orbit; 3 2PN Schwarzschild + solar Lense–Thirring; 4 the Earth's J2 on the Moon about the Earth's pole; 6 2.5PN damping; 7 the lunar figure, J2m and C22m (C22 by differentiating the (2,2) potential); 8 the tidal acceleration T = −ṅ·a/3 along the Moon's velocity (Gauss: da/dt = 2T/n, n ∝ a^−3/2 ⇒ ṅ = −3T/a). Integrated by the owner's Gauss–Radau method (radau.js). Seeded from the text (sovereign): the Sun's (Earth–Moon barycentre's) orbit from its revolutions, apogee and equation; the five planets from their revolutions (outer: the mean planet; Mercury and Venus: the śīghrocca, SS 1.30-1.32), apsides and nodes per kalpa (1.41-1.44, nodes westward), manda epicycles (2.35, first harmonic = 2e − e³/4) and greatest latitudes (1.68-1.70: Mars 90′, Mercury 120′, Jupiter 60′, Venus 120′, Saturn 120′, read as heliocentric inclinations [reading]); the Moon fitted to the text exactly as in gurutva.js; the equinox placed by the text's ayanāṃśa (3.9-3.10). Borrowed (the constants of the owner's force law, which the text does not give; the owner's AUDIT30 D2 table calls them BORROWED): the gravitational parameters, the Earth's J2 and radius, the lunar figure, ṅ, c, the AU in km. Their values are read from dop853-nbody.js, not restated here. Distances follow from the text's periods by Kepler III. Not in the text and so absent: Uranus, Neptune, Pluto. Time: civil days since the Kali epoch, as the text counts them. This file is OUTSIDE the sovereign set of kala-dvara.test.js because it loads the owner's force file and its constants.
आवश्यक · requires

What it loads

required by
nothing in the registry
निर्यात · exports

What it exports

IDXPLANETSGMOBLsystemrunderiveratesvariantstidalCheckimpliedInclinationmeanLonperKalpaframeeFromHarmonic
पाठ · the verses it cites

SS verses named in the header

  • SS 1.30verse
    indo rasāgnitritrīṣusaptabhūdharamārgaṇāḥ । dasratryaṣṭarasāṅkākṣilocanāni kujasya tu ।।
नलिका · channels

The channels it runs in

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

Every function, what it calls, who calls it

19 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 29–29
calls nothing in the registry
called by meanLon, perKalpa
eFromHarmonic(cDeg)lines 45–45exported
calls nothing in the registry
called by nothing in the registry
meanLon(R, t)lines 47–47exported

Heliocentric mean longitude (deg) of a body with R revolutions a yuga, at Kali day t: frac(R·(1811/4 + t/yuga)); R·1811/4 is whole for all five.

calls mod
called by nothing in the registry
perKalpa(rev, t, westward)lines 49–49exported

Apsis or node (deg) from revolutions per kalpa; nodes move westward (1.44).

calls mod
called by nothing in the registry
frame(ayanamshaDeg)lines 52–57exported

Text ecliptic (sidereal) → the owner's equatorial frame: add the text's ayanāṃśa, then tilt by OBL about the equinox.

calls nothing in the registry
called by nothing in the registry
toEq(v)lines 54–54
calls nothing in the registry
called by nothing in the registry
toEcl(v)lines 55–55
calls nothing in the registry
called by nothing in the registry

The whole text-seeded system at Kali day `epoch`, with the Moon's osculating geocentric elements `moonEl` (radians, a in AU).

calls nothing in the registry
called by nothing in the registry

Integrate the system for `days`; return the geocentric Moon's samples in the text's frame, reduced like gurutva.js.

calls nothing in the registry
called by variants, tidalCheck
called by nothing in the registry
unwrap(a)lines 107–107
calls nothing in the registry
called by nothing in the registry
derive(opts = {})lines 114–114exported

Fit the Moon's starting state to the text under the full law (same targets and update rules as gurutva.derive).

calls nothing in the registry
called by f
step(r)lines 121–121
calls nothing in the registry
called by nothing in the registry
perYuga(rate)lines 133–133
calls nothing in the registry
called by rates
rates(r)lines 134–138exported
calls perYuga
called by variants
variants(epoch, el, years)lines 140–145exported

Each block's share: rerun the same starting state with blocks switched off.

calls rates, run
called by nothing in the registry
tidalCheck(epoch, el, years)lines 147–156exported

The tidal block in a live integration: the same start with block 8 on and off; the difference in longitude is ½ṅt².

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

The inclination the text's apogee rate implies under the full law (secant on the syzygy latitude).

calls nothing in the registry
called by nothing in the registry
f(lat)lines 159–159
calls derive
called by nothing in the registry