Double Pendulum in fewer than 100 lines of JavaScript
Cool.Feature request: mount the pivot on a programmable cart. It'd be fun to write software to balance the double pendulum.e.g. https://www.youtube.com/watch?v=B6vr1x6KDaYand, balancing a triple pendulum: https://www.youtube.com/watch?v=cyN-CRNrb3E