The solar system, as geometry
Compute the solar system as exact geometry, with only + − × ÷. In N. J. Wildberger's quadrance and spread, the nineteenth century's geometries (inversive, stereographic, projective, elliptic and hyperbolic) need no angles, so JPL Horizons' DE441 vectors can be computed exactly, as rationals: where the centre of mass sits, how the orbit planes tilt against each other and the invariable plane, where spheres of influence have their radical planes, how orbits invert in the circle of Earth's orbit, and how the elliptic laws hold on the real sky. Float64 and float32 repeat every computation.
Abstract
Horizons prints every state vector as a 16-digit decimal, and a decimal is a rational number. So the geometry of the solar system, as JPL publishes it, can be computed exactly. We downloaded daily barycentric vectors for the Sun, the nine planetary-system barycentres, the Earth and the Moon from 1950 to 2050 (36,526 days, DE441), the Galilean moons hourly for 60 days, osculating elements, all 1,594,124 small-body orbits in JPL's Small-Body Database and 967 multi-planet systems from the NASA Exoplanet Archive. A Raya program computes in rationals: the barycentre of weighted points, quadrances to the Sun's surface, spreads between orbit normals , determinants for coplanarity, powers and radical planes of spheres, inversions, and the elliptic quadrances and spreads of the sky seen from Earth. The solar-system barycentre is outside the Sun on 60.8% of days, and the Sun–Jupiter barycentre on every day (). The Earth–Moon barycentre is always inside the Earth (). The invariable plane's spread to the ecliptic is . For the Sun–Jupiter–Saturn triangle seen from Earth on 1 January 2026, the elliptic spread law holds exactly and the Cross law residual is exactly 0, as exact arithmetic guarantees. Float64 matches the exact values to –; float32 errors reach in syzygy and near-coplanar tests.
The problem
Orbital geometry is usually written in angles: inclination, node, argument of perihelion, true anomaly. Each angle is a transcendental function of the coordinates, and the code that computes it rounds at every step. The underlying questions are often simpler than that. Is the barycentre inside the Sun or outside it? Are these three bodies on one line? Do two spheres touch? How far does one plane tilt from another? Each question is a polynomial in the coordinates and can be answered with .
Wildberger's rational trigonometry and universal geometry give that polynomial language. The quadrance replaces distance. The spread replaces the angle between lines or planes. Weighted points replace "mass at a distance". The results run through the nineteenth century's geometries in turn: inversive and Möbius geometry, stereographic projection, projective geometry and homogeneous coordinates, elliptic and hyperbolic geometry, complexification. We asked what the solar system looks like written that way, and what exactness buys over floats on real data.
Method
Data
| set | source | span | rows |
|---|---|---|---|
| Barycentric vectors | JPL Horizons API 1.2, DE441, @0, ecliptic J2000, km and km/s | 1950–2050, 1 d | 12 bodies × 36,526 |
| Heliocentric vectors and osculating elements | Horizons @10 | 1950–2050, 10 d and 30 d | 9 × 3,653; 9 × 1,218 |
| Galilean moons, Moon about Earth | Horizons @599 (jup365), @399 | 1 Jan – 2 Mar 2026 (moons), all of 2026 (Moon), 1 h | 4 × 1,441; 8,761 |
| Small bodies | JPL SBDB Query API 1.0, full precision | catalogue of 30 Nov 2026 | 1,590,035 asteroids, 4,089 comets |
| Exoplanets | NASA Exoplanet Archive TAP, pscomppars, ≥ 2 planets | catalogue of 30 Nov 2026 | 967 systems |
Masses are DE440 GM values (km³/s², the system values for the barycentres 1–9). The solar radius is the IAU 2015 nominal 695,700 km; the Earth's equatorial radius is taken as 6,378.137 km. The astronomical unit is exactly 149,597,870.7 km. "J2000" below means the daily sample at JD 2451545.5 (2 January 2000, 0h TDB). Each decimal string is parsed straight into a rational. No float is involved.
Exact geometry in Raya
The program works with points and vectors over the rationals: weighted barycentres , triangle and tetrahedron coordinates as ratios of determinants, planes through three points, spreads between normals, spheres with quadrance-radius , the power , the radical plane , the tangency function , inversion , stereographic and central projection, projective quadrance and spread for the forms , exact conics through five points, and complex rationals. A check program verifies 26 identities exactly before any data is read, including the classical constructions (inversion by pole and polar, inversion as reflection in a cone apex) and the elliptic and hyperbolic laws.
A second program reads the century of vectors and writes every headline number and a set of per-day series to 25 significant digits. It took 48 s for 36,526 days on an EC2 M4 Mac. A Python script then recomputes the same quantities in float64 and float32 from the same printed numbers. As an independent check, it redoes the coplanarity determinant on 300 random days with Python's fractions. All 300 agree with Raya to the 25 printed digits.
Every figure, the data charts included, is drawn with Riptide Motion, our maths animation library, and rendered using our graphics engine, Evelyn. Each construction also exists as a short video.
Results
Centres of mass as weighted points


Weighted by DE440 masses, the Sun and the nine system barycentres have their centre of mass within 126 km (mean 119 km) of Horizons' solar-system barycentre (SSB) on every day. The remainder is presumably mass that DE441 carries outside these ten bodies. Over the century, runs from 0.0040844 (24 April 1990) to 4.39974 (28 March 1983). The barycentre is outside the Sun's surface on 22,214 of 36,526 days. The Sun–Jupiter barycentre alone is outside on all 36,526 days, at 1.015–1.119 solar radii. The Earth–Moon barycentre is inside the Earth on every day, at 4,331–4,942 km from the centre. Recomputed from the two masses, it matches Horizons' own Earth–Moon barycentre to km².





Barycentric coordinates make the same point in one line. In the tetrahedron Sun–Jupiter–Saturn–Neptune, the centre of mass of those four bodies has coordinates exactly equal to their mass fractions. This is an identity, and the exact computation returns it to the last digit. The real SSB at J2000 has coordinates (0.998687, , , ). Its offset from the mass fractions is the pull of the other bodies, and it spikes whenever the four bodies come close to one plane and the tetrahedron flattens.





Across 967 multi-planet systems with catalogued masses and axes, 13% have a barycentric envelope that reaches past the stellar surface. For the Sun the envelope is 2.17 .
Planes and spreads
The normal of each orbit plane is , so inclination becomes a spread between normals, with no angle. The total angular momentum is the normal of the invariable plane. Its spread to the ecliptic at J2000 is (1.5787°), and it stays within – over the century (every 30 days). Jupiter's plane is closest to the invariable plane (spread ) and Pluto's is furthest (0.0721).





In float64, the spreads computed from vectors match of Horizons' printed osculating inclination to about for Mercury and for Venus, which have no moons. For planets with moons they differ by up to (Neptune), because the elements belong to the planet's centre, which circles its system barycentre.




The median asteroid spread is 0.018783 to the ecliptic and 0.019283 to the invariable plane; 206 asteroids are retrograde. SBDB publishes angles rather than vectors, so for this catalogue each spread is converted once in float64 from the published inclination.
Spheres, power and radical planes
Each body is a sphere with ; the Sun's is km². A Hill sphere's quadrance-radius involves a cube root. We round it once to an integer km² and stay exact from then on. The radical plane of the Earth and Mars Hill spheres at J2000 cuts the Earth–Mars segment at . Sampled every 2 days (18,263 samples), the Moon's power with respect to Earth's Hill sphere (centred on the Earth–Moon barycentre) is always negative, and the tangency function of the Earth and Venus Hill spheres stays positive, with a minimum of km⁴, so they never touch.



Inversion: the circle of Earth's orbit
Inversion in a circle uses pole and polar: the polar of meets the line at . The construction gives , which is rational even when the tangent points are not. Inverting the paths of Mercury to Saturn (one revolution each, projected on the ecliptic) in the circle of quadrance 1 au² about the Sun sends the inner orbits outside and the outer orbits inside. The Hill circles of Venus, Mars and Jupiter go to circles, with exact image centres and quadrance-radii; for all three, the pole–polar construction gives the same point as the formula.



Stereographic and central projection
Stereographic projection from the north pole, , is rational and conformal, and it sends circles to circles. Its inverse, , always lands on a rational point of the sphere. Inversion in a plane circle corresponds on the sphere to reflection in the apex of the tangent cone over the matching circle. We checked this exactly on a rational configuration (apex ).
A direction such as an orbit pole needs its length before it can be projected stereographically. The rational projection of a direction is the central one onto : , whose quadrance from the origin is .





Projective geometry: straightedge tests
In homogeneous coordinates a body is and a direction is , a point at infinity. Lines through pairs of bodies, planes through triples and the line of nodes (the meet of two planes) are all linear algebra over the rationals. A conjunction is an exactly zero cross product, and coplanarity is an exactly zero determinant. The spread at the Sun between the Earth–Moon barycentre and Jupiter reached its century minimum of on 6 January 2014. The coplanarity determinant of the Sun, the Earth–Moon barycentre, Jupiter and Saturn is negative on 18,211 days.



Elliptic and hyperbolic geometry
The celestial sphere is elliptic geometry. Points are directions, and the quadrance between two directions is the spread between the sight lines. On 1 January 2026, the triangle Sun–Jupiter–Saturn seen from Earth has quadrances 0.81907, 0.93822 and 0.035006. Its vertex spreads satisfy the spread law exactly, with common ratio . The Cross law has residual exactly 0.
With the form , the same formulas give Beltrami's and Wildberger's hyperbolic geometry. Planet velocities written as are points of that plane. Their quadrance is for the relative Lorentz factor , and it is rational for rational velocities. For the Earth–Moon barycentre and Jupiter it is , which parts from the Newtonian in the eighth digit.


Conics and their rational parametrisation
From the focus, a Kepler orbit has the rational parametrisation , with and . Every rational gives a point exactly on . For Earth's osculating orbit on 1 January 1950 (), six rational values of give six exact points. The complex value gives a point exactly on the complexified conic, the orbital form of the complexified circle's point , which we also reproduce exactly. Five positions of Mars fix one exact conic. Away from those five days the real path leaves it, mostly through the pull of the other planets.


Exact against float64 and float32
| quantity | float64 median | float64 max | float32 median | float32 max |
|---|---|---|---|---|
| spread at the Sun: EMB–Jupiter | ||||
| determinant Sun, EMB, Jupiter, Saturn | ||||
| spread Earth: Sun–Moon |


Float64 is accurate here; its worst case is the near-degenerate Sun–Earth–Moon spread, at . Float32 loses up to four or five digits in two places: when it subtracts large barycentric positions to get the Earth–Moon vector, and near the sign changes of the determinant. At daily sampling the determinant's sign never flipped, so float32 never gave a wrong coplanarity answer here. It would need finer sampling or more nearly degenerate configurations to do so.
Limitations and next steps
The limits of these results, each with its cause and, where one is planned, the next step.
- Float64 is enough for every number in this paper at the accuracy of the ephemeris itself. The exact path buys certainty for decisions (inside or outside, sign of a determinant, a law holding exactly) and reproducible digits, not better astronomy.
- The exact century run took 48 s of wall time; the float64 pass is one vectorised NumPy step (not timed). Neither was run as a benchmark.
- Unit normals, Hill radii and stereographic images of directions involve roots; we compute those once in float64 or round them once.
- SBDB elements are angles, so the 1.59-million-orbit statistics are float64, not exact.
Limits
"Exact" means exact for the printed Horizons numbers. DE441's own accuracy, metres to kilometres for the planets, is far larger than any float64 error measured here. Daily sampling makes the minima (conjunctions, syzygies, closest approaches) upper bounds. Exoplanet envelopes use catalogue masses and semi-major axes, not phases. The Hill sphere is a model. The inversion figures project orbits onto the ecliptic. That is a parallel projection, so conics stay conics, but the third coordinate is dropped.
Reproduction notes
Every download, the exact Raya programs and the float pipeline ran on an EC2 Mac in us-east-2, driven over SSM. The figures and videos were rendered on EC2 Linux instances and AWS Fargate, one machine per video. The data are public: JPL Horizons, JPL SBDB and the NASA Exoplanet Archive, recorded with query URLs and sha256. The Raya identity checks (26/26) run before the data.
Date and version
Version 1.2, 30 November 2026. All data downloaded and all results computed on 30 November 2026. Updated 1 December 2026: limitations section retitled.
Working with Riptide
Riptide works with a small number of teams. Each engagement starts with 4 weeks inside your systems, learning how your models, data and infrastructure work. Only then does Riptide apply its software to them. Contact samario@riptidecompute.com or riptidecompute.com/evaluate.