Library of human understanding
Lab
Seven real equations running live on this page. Drag, slide, stir — nothing here is a recording.
The same sims as a ladder of scales →
Solar system
Eight planets in real gravitational orbit. Watch Mars loop backward as Earth passes it — then follow Jupiter's slow dance. the maths
Velocity Verlet integration of the full gravitational N-body problem using J2000.0 ephemeris. Each body moves under the combined pull of all others. The simulation runs at ~100 years per frame; set your own speed.
Multi-electron atoms
Build any of the 118 elements. Watch helium's compact pair of electrons, then expand to gold's 79-electron chaos. the maths
Effective nuclear charge model with Slater screening. The electron cloud is built up shell-by-shell, sampling from |ψ|² for each valence configuration. The shimmering effect shows continuous re-measurement of electron position.
Schwarzschild black hole
Fall toward a black hole and watch spacetime bend. The photon sphere glows, the accretion disk reddens inward. the maths
Null geodesics traced backward from the observer. The photon sphere at r=1.5 r_s marks the edge of stable light orbits. The accretion disk temperature follows T∝r^(-3/4), glowing bright white as material spirals inward.
Quantum wavepacket
ModeA single quantum particle drifts into a barrier — and part of it goes straight through. the maths
Solved by split-step Fourier: half a step of the potential, a Fourier-space half step of the kinetic part, half a step of the potential again. The barrier sits just above the packet's mean energy, so you watch tunnelling and reflection at once.
Hydrogen orbital
OrbitalOne electron around one proton. Every dot is where a measurement might find it — watch the orbital emerge from the noise. the maths
Exact analytic orbitals sampled as |ψ|² point clouds: the radius comes from an inverse-CDF of r²R², the direction from rejection sampling on |Y|². Gold and violet mark the two signs of the real ψ — the nodal plane between lobes is where the wavefunction crosses zero.
Lennard-Jones melting
Atoms held together by the Lennard-Jones force freeze into a crystal, melt into a droplet, then boil away — just turn the heat up. the maths
Velocity-Verlet dynamics in reduced units, the potential cut and shifted at 2.5σ, and a Berendsen thermostat. The order readout is ⟨|ψ₆|⟩, the local six-fold bond-orientation order parameter — near 1 for a crystal, collapsing when it melts.
Kinetic gas
Hundreds of colliding discs settle into the Maxwell–Boltzmann speed distribution on their own. the maths
Every collision is elastic; nothing is drawn from the curve. Starting all discs at the same speed, the histogram still relaxes to the thin cream line — equilibrium is emergent. The piston wall does real work, so compressing the gas genuinely heats it.
Particles → Probability
Thousands of Brownian particles jiggling in a double well. Fade the dots out and what remains is the probability density itself. the maths
Euler–Maruyama overdamped Brownian dynamics — nothing about the equilibrium shape is drawn in by hand. The cloud is a Gaussian-kernel density estimate of where the particles actually are, which relaxes to the Boltzmann distribution on its own.
Shear-flow fluid
Two layers of water sliding past each other fold into Kelvin–Helmholtz whirlpools. Drag to stir. the maths
Stam's stable-fluids scheme: semi-Lagrangian advection, a Jacobi pressure projection to keep the flow divergence-free, and a little vorticity confinement so the swirls survive numerical damping. Seeded with a tanh shear layer along the diameter.
Pendulum phase space
A pendulum swings on the left while its (θ, p) orbit draws itself on the right — orbit, separatrix and all. the maths
Leapfrog integration — symplectic without damping, so the orbit neither spirals nor blows up. The ember curve on the phase plane is the separatrix: inside it the pendulum swings, outside it loops over the top. Drag the bob, or tap the plane to drop the state anywhere.
Wave Lab
Ten more animated tools — hydrogen orbitals, spherical harmonics, Bose–Einstein condensates, rainbows — the chalkboard side of the lab.
Open Wave Lab →