Interactive math & CS

See math and code move

University-level algorithms and math, animated step by step. Change the inputs, slow it down, and watch the idea become obvious.

145 All visualizations10 languagesThe interactive stage stays ad-free.

Open Problems

15 demos

Riemann Hypothesis

Primes look random, but the zeros of zeta hide a rhythm nobody can prove.

9 minLevel 3/3

Goldbach's Conjecture

Every even number above 2 should split into two primes. Enter one and see every way.

5 minLevel 1/3

Ramsey Numbers

Six points always hide a one-colour triangle. Five do not. Colour and see why.

6 minLevel 2/3

Twin Prime Conjecture

Prime pairs like (11,13) never seem to run out. Count them up to any limit.

6 minLevel 2/3

Collatz Conjecture

Halve evens, triple-plus-one odds. Does every start fall to 1?

5 minLevel 1/3

P vs NP

If a solution is easy to check, must it be easy to find?

8 minLevel 3/3

Birch & Swinnerton-Dyer

Rational points on an elliptic curve meet the behaviour of an L-function.

9 minLevel 3/3

Hodge Conjecture

Do abstract topological cycles come from tidy algebraic pieces?

8 minLevel 3/3

Navier–Stokes Equations

Fluids obey these equations — but do smooth 3D solutions always exist?

9 minLevel 3/3

Yang–Mills Mass Gap

The forces of particle physics need a rigorous theory — and a positive mass gap.

8 minLevel 3/3

abc Conjecture

When a + b = c, the distinct primes of a·b·c are rarely much smaller than c.

7 minLevel 2/3

Hadwiger–Nelson Problem

How many colours does the plane need so no two points 1 apart match?

7 minLevel 2/3

Odd Perfect Numbers

Every perfect number found so far is even. Does an odd one exist?

6 minLevel 2/3

Inscribed Square Problem

Does every closed loop contain four points forming a perfect square?

6 minLevel 2/3

Union-Closed Sets (Frankl)

If a family is closed under unions, must one element appear in half the sets?

7 minLevel 3/3

Geometry

19 demos

Shortest Path by Reflection

Fold the plane to turn a broken path into a straight line.

6 minLevel 2/3

Isoperimetric Problem

For a fixed perimeter, the circle encloses the most area.

6 minLevel 2/3

Pythagorean Theorem Proof

Rearrange the same four triangles to show a² + b² = c².

5 minLevel 1/3

Napoleon's Theorem

Build equilateral triangles on any triangle — their centres form one too.

6 minLevel 2/3

Fermat Point

The point that minimizes the total distance to three vertices.

7 minLevel 3/3

Golden Ratio & Fibonacci

Squares of Fibonacci size tile a growing golden spiral.

5 minLevel 1/3

Ant on a Cuboid: Shortest Path

Unfold the box to turn a surface path into a straight line.

8 minLevel 2/3

The 11 Cube Nets

Only 11 flat layouts fold up into a cube.

6 minLevel 2/3

Cross-sections of a Cube

Slice a cube and the cut can be a triangle, square, or hexagon.

7 minLevel 3/3

Platonic Solids & Euler’s Formula

Only five regular solids exist, and V − E + F = 2 for all of them.

7 minLevel 2/3

Great Circles & Geodesics

On a sphere, the shortest path is an arc of a great circle.

6 minLevel 2/3

The Tesseract (4D Cube)

A 4D cube, projected into 3D and rotated, reveals its structure.

7 minLevel 3/3

Power of a Point

From an external point, every secant gives the same product.

6 minLevel 2/3

Radical Axis

The line where two circles have equal power.

6 minLevel 3/3

Pick's Theorem

Lattice points count the area of a polygon on a grid.

5 minLevel 1/3

Curves of Constant Width

The Reuleaux triangle rolls like a circle without being one.

6 minLevel 2/3

Shortest Path on a Cylinder or Cone

Unroll the surface and the shortest path becomes a straight line.

7 minLevel 2/3

Cavalieri's Principle

Equal slices at every height mean equal volume.

6 minLevel 2/3

The Möbius Strip

A band with a half-twist has just one side and one edge.

6 minLevel 2/3

Algorithms

20 demos

Sorting Algorithms

Watch bubble, insertion, quick, and merge sort rearrange the same array.

6 minLevel 1/3

Dijkstra & A* Pathfinding

Compare how Dijkstra and A* explore a grid to find the shortest path.

8 minLevel 2/3

Recursion & Fibonacci

See the call tree explode, then collapse with memoization.

6 minLevel 2/3

0-1 Knapsack DP

Fill the DP table cell by cell and trace back the chosen items.

9 minLevel 3/3

Edit Distance (Levenshtein)

See how insert, delete, and replace fill the distance matrix.

8 minLevel 3/3

Binary Search

Cut the search space in half until the target appears.

4 minLevel 1/3

Conway's Game of Life

Four rules create gliders, oscillators, and endless motion.

5 minLevel 1/3

Sieve of Eratosthenes

Cross out multiples and watch the primes remain.

4 minLevel 1/3

Big-O Growth Rates

Compare constant, logarithmic, linear, quadratic, and exponential growth.

4 minLevel 1/3

Neural Network Forward Pass

Follow activations through layers of weighted connections.

6 minLevel 2/3

Convex Hull

Wrap a cloud of points with the smallest convex polygon.

5 minLevel 2/3

K-Means Clustering

Let centroids find groups in an unlabeled cloud of points.

6 minLevel 3/3

Union-Find & Kruskal MST

Merge components edge by edge and build a minimum spanning tree.

8 minLevel 3/3

Huffman Coding

Give frequent symbols short codes and watch a prefix tree grow.

7 minLevel 2/3

N-Queens Backtracking

Place queens row by row and backtrack when a column is unsafe.

7 minLevel 2/3

PageRank

Let random surfers vote with links until authority scores settle.

8 minLevel 3/3

P vs NP

Checking a solution is fast. Finding one may not be.

8 minLevel 3/3

Travelling Salesman

Visit every city once and return home with the shortest tour.

8 minLevel 3/3

Graph Coloring

Color every node so no edge connects two equal colors.

6 minLevel 2/3

Simulated Annealing

Sometimes accept a worse move to escape a local minimum.

7 minLevel 3/3

Data structures

8 demos

Math

46 demos

Fourier Series

Build complex waveforms by adding simple sine waves.

8 minLevel 3/3

Gradient Descent

Watch a ball roll downhill on a loss surface, step by step.

7 minLevel 3/3

Taylor Series

Approximate a curve with polynomials, one term at a time.

6 minLevel 3/3

Mandelbrot Set

Zoom into the infinite boundary of a simple complex iteration.

7 minLevel 3/3

Matrix Transformations

Stretch, rotate, and shear the plane with a 2×2 matrix.

6 minLevel 3/3

Newton's Method

Use tangent lines to zoom into a root at remarkable speed.

5 minLevel 3/3

Riemann Sums

Approximate area with rectangles and watch the error shrink.

6 minLevel 2/3

Linear Regression

Fit a line by least squares and inspect the residuals.

7 minLevel 2/3

Power Iteration

Repeatedly multiply a vector by a matrix to reveal its dominant eigenvector.

7 minLevel 3/3

Lorenz Attractor

A tiny change in the start creates a completely different trail.

8 minLevel 3/3

Bézier Curves

Drag control points and watch de Casteljau construction build the curve.

6 minLevel 2/3

Span & Basis

See all the places two vectors can reach — and when they collapse to a line.

6 minLevel 2/3

Column Space & Null Space

See where a matrix sends space, and what it crushes to zero.

7 minLevel 3/3

Eigenvalues & Eigenvectors

Find the directions a matrix only stretches or rotates in place.

8 minLevel 3/3

Orthogonal Projection

Drop a vector onto a line and see why the residual is perpendicular.

6 minLevel 2/3

Gram-Schmidt & QR

Remove the overlap between vectors to build an orthonormal basis.

7 minLevel 3/3

SVD Geometry

Every matrix turns a circle into an ellipse — SVD finds its axes.

8 minLevel 3/3

Change of Basis

Same vector, different coordinates. See the grid tilt.

7 minLevel 3/3

3D Linear Transformations

Rotate, shear, and squash a cube with a 3×3 matrix.

8 minLevel 3/3

Dot Product & Angle

Measure alignment, angle, and projection with one product.

5 minLevel 1/3

Cross Product & Area

One determinant gives the area of the parallelogram and its orientation.

5 minLevel 1/3

Matrix Multiplication as Composition

Apply B, then A. The product AB records the combined transformation.

6 minLevel 2/3

Inverse as Undo

Apply A, then A⁻¹, and return to the original shape.

5 minLevel 2/3

Norms & Unit Balls

One vector, three different ways to measure its size.

5 minLevel 1/3

Linear Systems as Intersections

Each equation is a line; a solution is where the lines meet.

5 minLevel 1/3

Unit Circle & Trigonometry

Rotate a point around the unit circle and watch sine and cosine unfold.

5 minLevel 1/3

Quadratic Functions & Parabolas

Change a, b, and c and watch the parabola move, stretch, and cross the axis.

6 minLevel 1/3

Compound Interest

See how small monthly contributions snowball over decades.

6 minLevel 1/3

RSA Encryption

Turn two primes into a public key, a private key, and a secret message.

8 minLevel 3/3

Collatz Conjecture

Pick a number and watch the 3n + 1 sequence climb and crash to 1.

5 minLevel 1/3

SIR Epidemic Model

Flatten the curve by changing transmission and recovery rates.

8 minLevel 3/3

Double Pendulum

A tiny difference in the start creates a completely different dance.

8 minLevel 3/3

Polar Curves

Draw roses, cardioids, and spirals with r as a function of θ.

6 minLevel 2/3

Pascal’s Triangle

Build binomial coefficients and reveal Sierpinski patterns.

5 minLevel 1/3

Voronoi Diagram

Divide the plane by which site is closest.

6 minLevel 2/3

Conic Sections

One focus, one directrix, and eccentricity decide the shape.

6 minLevel 2/3

Wave Interference

Two sources create bright and dark fringes through superposition.

7 minLevel 3/3

Logistic Bifurcation

A one-line map walks from order into chaos.

7 minLevel 3/3

Julia Set

Change one complex parameter and the fractal changes completely.

7 minLevel 3/3

Euler’s Method

Follow the slope in small steps to approximate a differential equation.

6 minLevel 2/3

Newton Fractal

Color the complex plane by which root Newton’s method finds.

7 minLevel 3/3

Linear Programming

Maximize an objective over a polygon of constraints.

7 minLevel 3/3

Principal Component Analysis

Find the directions where the data varies the most.

7 minLevel 3/3

Logistic Regression

Fit a sigmoid boundary between two classes.

7 minLevel 3/3

Lotka–Volterra Model

Predator and prey populations chase each other in cycles.

7 minLevel 3/3

Kalman Filter

Combine noisy measurements with a model to track the truth.

7 minLevel 3/3

Probability

10 demos

History of Math

27 demos

Why √2 Is Irrational

A unit square’s diagonal broke the belief that every length is a fraction.

6 minLevel 2/3

Seven Bridges of Königsberg

Cross every bridge exactly once — or prove why nobody can.

6 minLevel 2/3

Three Impossible Constructions

Trisect an angle, double a cube, square a circle — with only a straightedge and compass.

7 minLevel 3/3

The Birth of Calculus

Tangent slopes and accumulated area turn out to be inverse problems.

6 minLevel 2/3

Cubic Equations & Complex Numbers

Real cubic equations sometimes need imaginary numbers to find real roots.

7 minLevel 3/3

The Unsolvable Quintic

There is no general formula for degree five — and group theory explains why.

8 minLevel 3/3

Non-Euclidean Geometry

Drop the parallel postulate and triangles stop summing to 180°.

7 minLevel 3/3

Cantor’s Diagonal Argument

Some infinities are larger than others — and one short diagonal proves it.

6 minLevel 2/3

The Problem of Points

A paused gambling game helped invent probability theory.

6 minLevel 2/3

Turing & the Halting Problem

No program can predict whether every program will stop.

7 minLevel 3/3

The Four Color Theorem

Every flat map needs at most four colors — and the first proof needed a computer.

6 minLevel 2/3

Quaternions & Non-Commutative Rotation

Hamilton’s three-dimensional numbers: i j is not j i.

7 minLevel 3/3

Archimedes and the Squeeze for π

Trap π between inscribed and circumscribed polygons until the bounds agree.

6 minLevel 2/3

Brahmagupta and the Rules of Zero

Fortunes, debts, and nothing: the 7th-century rules that made zero a number.

5 minLevel 2/3

Hamming Codes and Self-Correcting Bits

Three parity bits can name exactly which bit flipped — and fix it.

6 minLevel 3/3

Shannon and the Bit of Information

Measure uncertainty with a curve — and learn why one bit is a coin flip.

6 minLevel 2/3

Diffie–Hellman Key Exchange

Two strangers agree on a secret while everyone listens.

7 minLevel 3/3

Zu Geng and the Sphere Volume

Equal slices at every height force equal volumes — and give 4/3 πr³.

6 minLevel 2/3

Plimpton 322 and Babylonian Triples

A 3,800-year-old clay table of right triangles — purpose still debated.

6 minLevel 3/3

Al-Khwarizmi Completes the Square

Four rectangles and four corner squares turn x² + bx = c into a perfect square.

6 minLevel 2/3

Madhava’s Series for π

Add and subtract odd unit fractions until π/4 appears — then speed it up.

7 minLevel 3/3

Napier Turns Products into Sums

Two logarithmic scales replace a hard multiplication with an easy addition.

6 minLevel 3/3

Descartes and the Coordinate Grid

One curve, one equation: how algebra and geometry learned to talk.

6 minLevel 2/3

Euler Characteristic V − E + F

Count vertices, edges, and faces — and watch V − E + F ignore every dent.

6 minLevel 2/3

Russell’s Paradox

The set of all sets that do not contain themselves breaks both ways.

6 minLevel 3/3

Poincaré and the Three-Body Problem

Two almost identical starts, two wildly different futures.

7 minLevel 3/3

Bayes’ Billiard Table

Throw balls, count left and right, and update a belief about where the white ball lies.

7 minLevel 3/3