... THE MATHEMATICAL ELECTRON ...
a Programmer-God Simulation-Hypothesis model


if we assign geometrical objects to mass, space and time at the Planck scale,
and then link them via this unit number relationship, 
we can build a physical universe from pure mathematical structures.
Could a Programmer God have used this approach?




2-body elliptical orbits

The simulation (gravitational-orbital-elliptical-orbits.cpp) is the same program as for 2-body orbits but with an extra function, orbitals can travel either clock-wise or anti-clockwise. By choosing the ratio of clock-wise:anti-clockwise orbitals the degree of eccentricity can be controlled. The ratio 108:1 (kcurve = 108) gave an eccentricity close to Mercury. 
Variables:
kcurve //0 = circular, 1 = straight line, 9999... = circular
direction //(1 anticlockwise, -1 = clockwise)
cycle //number of orbits to repeat

To extrapolate to mass = infinity for comparison with Mercury's orbit; Gravitational-orbital-ellipse-extrapolate.py was used.
Code at https://codingthecosmos.com/orbitals/ellipse/

For further details and images

wiki- gravitational and atomic orbitals