Choo choo! In this challenge, I build on chapter 3 (Oscillating Motion) of the Nature of Code series and simulate a simple pendulum in p5.js via angular acceleration.

This track accompanies the Nature of Code book.

The derivation and analysis of the equation governing the position of a pendulum as a function of time.

Physics-based simulation of a simple pendulum.

A simple pendulum simulation that uses sine to calculate the angular component of the gravitational force.

This video explores the trigonometric functionsโsine, cosine, and tangent

This video explains how to apply the concepts of vector motion to angles (scalar!).

Live Stream Archive of this challenge

- Editing
by Mathieu Blanchette

- Animations
by Jason Heglund