Orbit Lab · iterate anything
Type a map. Watch its orbit.
Every discrete dynamical system is just a function fed its own output: x → f(x) → f(f(x)) → … Type any f(x) below — the cobweb shows each iteration bouncing between the curve and the mirror line y = x, and the lab measures whether the orbit settles, cycles, or goes chaotic.
the map y = f(x)
y = x
cobweb orbit
Vertical hop = apply f. Horizontal hop = feed the answer back in.
Long-run behavior
–
Attractor
–
Lyapunov exponent λ
–
Orbit range
–
The same orbit as a time series — xₙ against n
Things worth trying: with cos(x), any seed whatsoever funnels into 0.739085… — a super-stable fixed point you can also find by mashing the cos key on a calculator. With the tent map at r = 4, λ = ln 2 exactly: the orbit loses one bit of memory of x₀ per step. And compare the logistic and sine maps at high r — different formulas, same period-doubling story. That's universality.
| x, r | the state, and the slider parameter — write formulas using both |
| + − * / ^ % | arithmetic; ^ is power, % is modulo. Implicit multiplication works: r x(1−x) |
| sin cos tan · asin acos atan | trig (radians) and inverses |
| exp ln log sqrt | ln natural log, log base-10 |
| abs sign floor ceil round | rounding & sign helpers — abs(2x−1) builds tent-like maps |
| min(a,b) max(a,b) | two-argument min / max |
| pi e tau phi | 3.14159…, 2.71828…, 2π, golden ratio |