Nonlinear Dynamics: Numerical Experiments with Rust and Wasm
January 3, 2026 ◦ 2 min ◦
The Lorenz System
The Lorenz system models atmospheric convection through three coupled nonlinear ODEs:
$$ \begin{aligned} \frac{dx}{dt} &= \sigma(y - x) \ \frac{dy}{dt} &= x(\rho - z) - y \ \frac{dz}{dt} &= xy - \beta z \end{aligned} $$
With standard parameters $\sigma=10, \rho=28, \beta=8/3$, the system is chaotic and converges to a strange attractor.
Simulation
This uses Rust compiled to WebAssembly. The integration runs in your browser at near-native speed.
X-Z phase space projection
Notes
The numerics are in Rust, compiled to wasm32-unknown-unknown. This is my first test using Wasm in a blog post.