RiptideRiptide
Download Riptide SDKInstall Riptorch
Menu
Whitepapers · Raya · Exact geometry

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.

Version
1.2 (corrected 1 December 2026: spread wording; limitations section retitled)
Date
30 November 2026
Author
Samario Torres, Riptide
Software
Raya 0.3.4 (Riptide SDK) with Riptide's exact-arithmetic libraries; Riptide Motion, rendered using our graphics engine, Evelyn; Python with NumPy for the float64 and float32 passes
Download PDFOpen in new tabriptidecompute.com/whitepapers/solar-system-rational-geometry

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

Table 1. Data sets. All public; every query URL, size and sha256 is in the campaign manifest.
setsourcespanrows
Barycentric vectorsJPL Horizons API 1.2, DE441, @0, ecliptic J2000, km and km/s1950–2050, 1 d12 bodies × 36,526
Heliocentric vectors and osculating elementsHorizons @101950–2050, 10 d and 30 d9 × 3,653; 9 × 1,218
Galilean moons, Moon about EarthHorizons @599 (jup365), @3991 Jan – 2 Mar 2026 (moons), all of 2026 (Moon), 1 h4 × 1,441; 8,761
Small bodiesJPL SBDB Query API 1.0, full precisioncatalogue of 30 Nov 20261,590,035 asteroids, 4,089 comets
ExoplanetsNASA Exoplanet Archive TAP, pscomppars, ≥ 2 planetscatalogue of 30 Nov 2026967 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

The edge of the Sun, the barycentre B just outside it, and the range of B over 1950 to 2050
Figure 1. The Sun–Jupiter barycentre lies on the segment SJ, dividing it so that (1 : 1047.35). Over the century .
Looping curve of the barycentre's path around the Sun's disc in solar radii
Figure 2. The solar-system barycentre seen from the Sun's centre, every 5 days from 1950 to 2050, in solar radii.

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

Time series of the quadrance ratio crossing the line at 1
Figure 3. ; above the dashed line the barycentre is outside the Sun.
Time series staying between 1.03 and 1.25
Figure 4. The Sun–Jupiter barycentre: never inside the Sun.
Time series between 0.46 and 0.60
Figure 5. The Earth–Moon barycentre: always inside the Earth.
Sun and outer planets with the partial barycentres built step by step
Figure 6. The barycentre as an iterated affine combination: Sun with Jupiter, then Saturn, Uranus and Neptune, each step a lever on a segment.
Translucent Earth sphere with the barycentre B inside it, on the line towards the Moon
Figure 7. The Earth–Moon barycentre inside the Earth.

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.

A 3-D tetrahedron of the Sun, Jupiter, Saturn and Neptune with a point P inside and the sub-tetrahedra
Figure 8. Barycentric coordinates in a tetrahedron as ratios of oriented volumes (determinants).
Three log panels of the gap between each coordinate and its mass fraction, with spikes
Figure 9. The SSB's tetrahedral coordinates against the mass fractions.
Three coordinate curves over the first 12 days, and the smallest of them over 60 days
Figure 10. Callisto in barycentric coordinates of the Io–Europa–Ganymede triangle, hourly.
Residual distance falling from 126 to 114 km
Figure 11. The ten weighted points against Horizons' barycentre.
Histogram of envelope ratios on a log axis with the Sun marked
Figure 12. Multi-planet systems: how far the star can sit from its barycentre, in stellar radii.

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

Three tilted planes around the Sun with their normals in a 3-D view
Figure 13. The ecliptic, Jupiter's orbit plane and the invariable plane, with their normals; the spread is .
Paired bars per planet on a log axis
Figure 14. Spreads to the ecliptic and to the invariable plane, J2000.
9 by 9 heat map of log spreads
Figure 15. Mutual spreads between orbit planes.
Change of the spread in parts per billion, between about −15 and +26
Figure 16. The invariable plane over a century.
Normalised curves drifting slowly
Figure 17. Orbit poles drifting against the ecliptic.

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.

Relative differences per planet over time
Figure 18. Vector spreads against the printed inclinations.
Log histogram of spreads from 0 to 1
Figure 19. Inclination spreads of all 1,594,124 SBDB orbits.
Two step histograms
Figure 20. Asteroids against the ecliptic and the invariable plane.
Box plots by orbit class
Figure 21. Spreads by orbit class.

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.

Two translucent spheres, the radical plane between them and the tangent cones from a point P on it
Figure 22. The radical plane of two spheres: the points with equal power, where the tangents have equal quadrance.
A sphere with points inside, on and outside it, a tangent cone, and two touching spheres
Figure 23. Power of a point and the tangency function.
Two panels: positive tangency function and negative power
Figure 24. The tangency function stays positive and the Moon's power stays negative.

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.

Circle with tangents from A, the polar line and the inverse point B
Figure 25. Inversion by pole and polar: , , .
Planetary orbits and their inverses in Earth's orbit circle
Figure 26. Orbits inverted in the circle of Earth's orbit.
Two panels of solid orbits and dashed inverses
Figure 27. The same inversion from the data: X ↦ X/Q(X) in au.

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 .

Sphere, north pole and lines through points to the equatorial plane
Figure 28. Stereographic projection: northern points land outside the equator's image, southern inside, and the pole goes to the point at infinity.
Sphere with a small circle, its tangent cone apex and a reflected point
Figure 29. Inversion as reflection in the cone apex.
Density map of asteroid poles with planets marked
Figure 30. Orbit poles of 1.59 million asteroids, stereographic from the ecliptic south pole.
Planet poles as labelled points
Figure 31. Planets' poles by central projection, exact.
Sky map with the Sun, Moon and planets inside and outside a unit circle
Figure 32. The sky from Earth on 1 January 2026.

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.

The projective line as lines through the origin, with 11:7 and 1:0
Figure 33. Homogeneous coordinates: , and is the point at infinity.
Lines through pairs of bodies, a plane through three
Figure 34. Straightedge tests: collinearity as a cross product, coplanarity as a determinant.
Log series with dips at new and full moons
Figure 35. Syzygies of the Sun, Earth and Moon in 2026.

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.

Spherical triangle of three bodies on the celestial sphere
Figure 36. Elliptic rational trigonometry on the sky.
Sphere, two-sheeted and one-sheeted hyperboloids with the light cone and planes through the origin
Figure 37. The sphere and the hyperboloids: one geometry with a sign change.

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.

Unit circle and Earth's orbit with rational points labelled by t
Figure 38. Rational parametrisation of the circle and of Earth's orbit.
Residual zero at the five days and oscillating up to about 6 × 10⁻⁴ away from them
Figure 39. Mars against one fixed conic.

Exact against float64 and float32

Table 2. Relative errors against the exact values over 36,526 days (same printed inputs).
quantityfloat64 medianfloat64 maxfloat32 medianfloat32 max
spread at the Sun: EMB–Jupiter
determinant Sun, EMB, Jupiter, Saturn
spread Earth: Sun–Moon
Log error series for float64 and float32
Figure 40. Alignment spread: float errors against exact.
Two histograms of log relative errors
Figure 41. Coplanarity determinant and syzygy spread.

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.