gurutva/purnanka-nbody-engine.js
integer N-body sketch on the spanda lattice (leapfrog in form; what is TESTED is in test/test-parashara-bhrigu-nbody.js)
263 lines · 9 exports
The header, as the file states it
What it loads
What it exports
INTEGER_GRAHA_MASSESMEAN_ORBIT_RADII_MICRO_AUintegerSqrtintegerDistance2DcomputeMutualGravitationalPerturbationsimulateJupiterSaturnIntegerResonancesimulateSunEarthMoonThreeBodyTidessimulateVenusEarthPentagramResonanceevaluateIntegerNBodySystemSS verses named in the header
none in the registry
The channels it runs in
Every function, what it calls, who calls it
7 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.
Integer square root via integer Newton-Raphson. @param {bigint} val
Computes mutual integer distance between two 2D positions in micro-AU.
Computes mutual gravitational acceleration between two bodies on the integer grid. F_ij = G * M_j / R^2 in the direction of body j. Force magnitude scaled to integer units.
Integer N-Body Resonance Simulator for Jupiter and Saturn (The Great Inequality). Simulates their mutual 5:2 orbital dance across centuries. In 5 orbits of Jupiter (~59.3 years) and 2 orbits of Saturn (~58.9 years), they return to almost the exact same mutual orientation, producing the famous 883-year Great Inequality without any empirical curve-fitting!
Integer 3-Body Sun-Earth-Moon Tidal Perturbation Model (Evection & Variation). Calculates the solar tidal differential pulling the Moon: Delta_F = 2 * G * M_Sun * R_Moon / R_Sun^3
Integer 2-Body Venus-Earth 13:8 Resonance & Pentagram Geometry. In 8 Earth years (2922 days), Venus completes 13 revolutions (2921 days). 13 - 8 = 5 synodic points forming the sacred Golden Ratio Pentagram!
Master Integer N-Body Evaluation Computes all mutual gravitational perturbations across the Solar System.