Mathematics + Code
Interactive visualisations of dynamic systems, machine learning and signal analysis — mathematics running in the browser.
Gradient descent, live
Gradient descent minimises a function by stepping against its gradient. Tweak the learning rate (η) and the starting point to watch it converge — or diverge.
n = 0 · x = -3.0000 · f(x) = 16.5000 · click the chart to set x₀
Fourier series of a square wave
A square wave is approximated by summing odd harmonics. Increase the number of terms and watch the sum converge to the target signal (with Gibbs ringing at the jumps).
Lorenz Attractor
Chaotic dynamical system described by three ODEs. Change σ or ρ to explore the bifurcation: below ρ ≈ 24.7 the system converges to a fixed point; above, chaos emerges.
ρ < 24.7 → fixed point · ρ > 24.7 → chaos
Interactive neural classifier
2→8→1 network (ReLU + sigmoid). Left-click to add class-A points, right-click for class B. The network trains in real time and draws the live decision boundary.
Click the canvas to add points — training starts automatically.