Here are some visualizations I've been working on recently experimenting with Claude Code
Drag the tip of z′ (the axis of maximum moment of inertia) to orient the box. Drag the tip of ω to change its direction, and its shaft to change its length (the spin rate). Drag the black z axis to rotate the view. Press Play to rotate the box about ω.
Set the initial orientation and ω by dragging, as above, and drag the black z axis to rotate the view. Press Play to evolve the box as a torque-free rigid body: L stays fixed in space while ω moves through the body. The box has mass 1 and half-widths 1.3, 0.8, 0.35; L is drawn scaled by 1.25/I3.
Starting with the body axes x′y′z′ on top of xyz, the orientation is built from three rotations, each about an axis carried along by the earlier ones (the z-x-z convention): φ about z, which swings the x axis around to the line of nodes N; then θ about N, which tilts z to z′; then ψ about z′, which turns N to x′. N is where the xy and x′y′ planes intersect. Use Step to do the rotations one at a time and Play all to run the whole sequence. Drag anywhere to rotate the view.
A pendulum whose pivot is shaken up and down once per unit time. Each term in $\dot v$ is a wave, and each dial shows that wave's phase as seen by the pendulum. Click the phase plane to launch an orbit.
$$\dot\theta = v, \qquad \dot v = -\alpha\sin\theta - \epsilon\left[\sin(\theta-2\pi t)+\sin(\theta+2\pi t)\right]$$
$v=0$ resonance
$\dot v \propto -\sin(\theta)$
$v=2\pi$ resonance
$\dot v \propto -\sin(\theta-2\pi t)$
$v=-2\pi$ resonance
$\dot v \propto -\sin(\theta+2\pi t)$
Keep only the state $(\theta, v)$ at $t = 0, 1, 2, \dots$, once per drive period. Because the equations repeat every period, the state at $t = n$ completely determines the state at $t = n+1$, so this is a well-defined, area-preserving map of the plane to itself. Click anywhere to launch an orbit and plot its crossings. Then read the plot:
Populate launches a grid of orbits for a quick overview. Changing $\alpha$ or $\epsilon$ clears the plot.
The surface of section tells regular and chaotic orbits apart by their shape: curves versus scattered clouds. The other defining property of chaos is sensitive dependence on initial conditions. Click the left panel to launch two orbits that start a tiny distance $d_0$ apart (they differ only in $\theta_0$). On the left, orbit A is solid with a filled dot and orbit B is dashed with an open dot. On the right, the distance between them in phase space, $d(t) = \sqrt{\Delta\theta^2 + \Delta v^2}$ (with $\Delta\theta$ taken modulo $2\pi$), is traced out in sync.
Try $\theta_0 = \pi$, $v_0 \approx 0.5$ (in the chaotic layer near the unstable fixed point) against $\theta_0 = 0.8$, $v_0 = 0$ (deep in the central island). Each new click keeps earlier distance curves, faded, for comparison. Tick log scale to see that chaotic growth is a straight line, whose slope is the Lyapunov exponent $\lambda$.
Visualization by Aron Zhou.