A remake of this D3 gist moving the math into wasm for speed (and an excuse to learn Rust 🦀 and WebAssembly 🕸. The n-tuple pendulum simulator uses the lagrangian formulation of the n-tuple pendulum (with much help from Diego Assencio's blog post), and is solved numerically with the classic Runge-Kutta method (RK4). Code available on GitHub.