Eric Neumann has created an online simulation that can be used to model one of the legs of the pendulum. Try experimenting with the simulation as well, and see how sensitive it can be to its initial conditions. https://www.myphysicslab.com/pendulum/double-pendulum-en.html