Skip to content
Dark Matter

Orbits

Throw planets at a star. Kepler does the rest, and the trails become a drawing.

Drag from anywhere: direction and length set the speed. Let go to launch. With the keyboard: arrows aim, Enter launches.

Speed

—

Challenges

A circle: launch sideways at the circular speed (within 2%)

Three planets in orbit at once

Kepler's third law

PlanetaTT²/a³

—

Ask Claude

Answered by Claude Haiku 5.5, from Anthropic. What you write is sent to Anthropic to answer; we don't keep it.

What's happening

Every planet only feels the star's gravity, F = GMm/r². Launched sideways at the circular speed, it goes round in a circle; at other speeds, in an ellipse; from √2 times that speed, it escapes for good, whatever the direction. The table checks Kepler's third law with what each planet actually does: it times every full turn and measures the orbit's size, and the square of the period comes out proportional to the cube of the size.

T² ∝ a³ · v_c = √(GM/r) · v_esc = √2 · v_c

How to play

Drag from anywhere to aim and set the speed; the dotted line shows the orbit before you let go. The challenges: a perfect circle, and three planets in orbit at once. Then save the drawing.

How it's made

A leapfrog integrator in logarithmic time (Mikkola and Tanikawa, 1999): around a single star it keeps each orbit's exact shape, however close it passes, so nothing drifts as the minutes go by. Touch, mouse and keyboard all work.