Formula

Formulas you can watch, drag and take apart.

A CAD-style workbench with 39 live formulas, from polar coordinates to the Lorenz attractor, sorting, pathfinding and proofs.

Each formula is a resizable viewport on an infinite drafting canvas. It comes with its reference docs, step-by-step derivations, and working Python, TypeScript and Rust code.

Runs in your browser with WebAssembly. Best on a desktop with a mouse. Or download the desktop app for macOS, Windows or Linux.

The Formula workbench: six formulas animating side by side on the drafting canvas
titleFormula workbench
written inRust, egui, WebAssembly
sheet1 of 1

What you can do

Everything happens on one board, the way you'd lay out a drawing.

Place formulas on an infinite canvas

Click a tool to place it, or drag out its size. Move, resize, duplicate, lock, hide and undo, with snapping and smart guides. Every viewport keeps animating at any zoom.

Get your hands on it

Drag points, paint cells, draw walls, orbit 3D views, and scrub through every step of an algorithm like a video.

See it explained

The Inspector shows each formula's equations, controls and full docs. The Derive tab works the equations out with the viewport's own numbers, one operation at a time.

Take the code with you

Export Python (numpy and matplotlib), TypeScript and Rust programs, LaTeX with the current values, or a ready-to-run Jupyter notebook.

Save the whole board

A sheet is a plain-text .fwb file with every formula's settings. Open one later and pick up where you left off.

Link to a formula

Every tool has its own address, like /app/#mandelbrot, so you can share exactly what you're looking at.

Showcase

Six of the formulas, recorded from the workbench. Click one to open it live.