×

notesoncomputing.com

Scroll
for science.

Demos, equations, and facts from math, physics, and computer science. One per screen.

Boolean algebra

Three operators, one computer.

A
A ∧ B
B
=
0
OUT
ABAND
000
010
100
111
Computer architecture →

10120

The Shannon number — a lower bound on the count of distinct chess games. Roughly 1040 times the number of atoms in the observable universe.

Combinatorics →

Two pendulums, chaotic.

One pendulum hanging off another. Same starting angles within a hair, totally different paths a few seconds later.

dynamical systems →

The butterfly effect, literally.

Three equations modeling convection. The path never repeats, never settles, and switches between two looping wings forever.

chaos & ODEs →

0.1 + 0.2
= 0.300…04

In nearly every programming language. Floating-point can't store 0.1 exactly — it picks the nearest binary fraction, and the rounding error survives the add.

Floating-point →

Solving an ODE

Step forward in time.

step size h0.40
Explicit Euler →

Many futures, one equation.

A stochastic differential equation: tiny step in the drift direction, then a random kick. Sixty paths from the same start, and the spread has shape.

SDEs →

The most famous shape in math.

For each point: iterate z = z² + c. Does it stay bounded? The boundary is the Mandelbrot set, and it repeats at every zoom level forever.

computing…
fractals →

Where Newton's method lands.

Run Newton's method on z³ = 1 from every starting point. Three cube roots. The boundary between basins is fractal all the way down.

computing…
root-finding →

N² → N log N

The fast Fourier transform (Cooley & Tukey, 1965). Without that speedup, no MRI, no JPEG, no MP3, no Wi-Fi, no 5G. Same math — better bookkeeping.

Fourier series →

Fourier series

Anything periodic is a sum of sines.

tap a harmonic
Fourier series →

Two rules. Endless life.

Live cell with 2 or 3 neighbors lives. Dead cell with exactly 3 comes alive. That's it. From those rules: gliders, oscillators, structures that look like organisms.

cellular automata →

Patterns from a uniform soup.

Two chemicals, same rules everywhere. Tiny noise breaks the symmetry and the mix self-organizes into spots, stripes, coral. Turing 1952.

reaction-diffusion →

Flocks from three rules.

Every agent: match neighbors' direction, drift toward the local center, keep your distance. No leader. Coherent flocking emerges.

emergence →

P ≟ NP

If a solution is easy to verify, is it easy to find? Open since 1971. The Clay Institute will pay one million dollars for the answer.

Algorithms →

Monte Carlo

Estimate π with random darts.

Estimate
π ≈ 0.0000
Samples
0 / 0
Statistics →

A fractal from pure randomness.

Pick three corners. Start anywhere. Repeatedly pick a random corner and step halfway toward it. You'd expect a blob. You get a Sierpinski triangle every time.

chaos game →

The angle nature picked.

Dots in a spiral with 137.5° between each. The pattern sunflowers, pinecones, and pineapples settle on. The tightest packing of points on a disc.

137.51°
phyllotaxis →

Out of sync, then back in.

Fifteen pendulums, each slightly longer than the last. They drift out of phase, into a snake, a wave, a braid — then snap back to a line.

oscillators →

Tap to make ripples.

The 2D wave equation on a drumhead. Pulse spreads out, bounces off the walls, passes through other pulses. Tap anywhere on the canvas.

click to drop a pulse
wave PDE →

Anything is circles.

Every periodic signal is a sum of rotating circles. Stack enough and you can trace any curve. Complicated things, secretly simple.

Fourier →

Brain rhythms, two equations.

Excitatory cells recruit inhibitory cells. Inhibition suppresses excitation. The feedback loop produces the brain's gamma rhythm.

1.50
00.51ratet (ms, scrolling 200 ms window)E (excitatory)I (inhibitory)E (excitatory rate)I (inhibitory rate)0101E-nullcline (dE/dt = 0)I-nullcline (dI/dt = 0)trajectorycurrent stateFixed points sit at intersections of the two nullclines.

Stronger E↔I coupling and τ_I > τ_E gives a Hopf bifurcation. E ramps up, recruits I, I suppresses E, both fall, E recovers, cycle repeats. This is the canonical mechanism for cortical gamma rhythms (~40 Hz).

Wilson-Cowan →

Where the electron lives.

The electron in hydrogen isn't a point — it's a cloud. The density peaks at a distance set by one parameter ζ. Drag it.

1.00
0123456r (Bohr radii)P(r) = 4πr²|ψ|²r* = 1.00

Exact 1s ground state of hydrogen — ζ = Z = 1. The peak of the radial probability sits at r* = 1/ζ = 1 Bohr radius, the textbook Bohr radius result.

orbitals →

2136,279,841 − 1

The largest known prime (Mersenne, 2024). Around 41 million digits long — printed in 9-pt type it would span two football fields end to end.

Number theory →

end of feed

There's a whole site below.

Each demo on this feed is a single page. There are around 420 more — on math, physics, neuroscience, CS, and circuits.

Browse all pages or back to home