Simulating Double Pendulum with Rust and WebAssembly

What is a Double Pendulum?

A double pendulum is a pendulum with another pendulum attached to its end, and is a simple physical system that exhibits rich dynamic behavior with a strong sensitivity to initial conditions.

A System of Double Pendulums

In the next few articles I’m going to describe how this motion happens, and how to simulate it using rust and webassembly.
Meanwhile, check it out at: https://dpvis.herokuapp.com/

Seting up the dev environment

What you’ll need

  1. Rust
  2. Wasm-pack
  3. Node.js