Orbit
A browser tool for multivariable calculus.
From an equation to a surface
Orbit plots surfaces, space curves, and vector fields in the browser. It also estimates derivatives and curve lengths, so the graph and the calculation can be inspected together.
The default torus is a parametric surface. Two parameters, u and v, determine each point:
x = (2 + cos(v)) * cos(u)
y = (2 + cos(v)) * sin(u)
z = sin(v)
The renderer samples those equations, projects the resulting points into a 2D canvas, and draws the surface. Dragging changes the camera. On a phone, two fingers change the zoom.
Handling undefined values
Sampling a curve at evenly spaced points can draw a line across an asymptote. Orbit samples additional points where a curve bends or jumps, and leaves gaps around detected undefined values. This reduces false connections, but it cannot prove that a curve is continuous.
Expressions go through a restricted parser instead of JavaScript evaluation. Saved scenes contain equations, ranges, and view settings as validated JSON.
Rendering limits
Canvas 2D keeps the renderer in ordinary browser code. Depth sorting can still draw overlapping surfaces in the wrong order. Implicit surfaces use a finite sampling grid, which can miss small features. Derivatives and arc lengths are numerical estimates.
Run it locally
Orbit needs Python 3 to serve the files. There are no frontend packages to install.
git clone https://github.com/ebilesh/orbit.git
cd orbit
python3 -m http.server 8000 --directory dist
Open http://localhost:8000. Node.js 20 or later is only needed to run npm test.