Skip to content

A double pendulum, demonstrating the three-body problem

License

Notifications You must be signed in to change notification settings

johnnyawesome/DoublePendulum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DoublePendulum

A double pendulum, demonstrating the three-body problem.

Double Pendulum three-body problem

The three-body problem comes from physics and mathematics, specifically dynamical systems.

Double pendulums are an easy way of demonstrating the three-body problem.

In a nutshell:

  • A pendulum is 100% deterministic. A pendulum's future positions are predictable once you know certain facts about it.
  • A double-pendulum (which is nothing but adding another pendulum to the first one) on the other hand, behaves chaotic. Mind you, it is still deterministic. But long-term predictions where the pendulums will be in the (far) future are almost impossible.

Two versions

Interactive version

This animation is interactive:

You can grab the middle-pendulum with your mouse and give it a push for more acceleration.

You can also adjust the pendulum-size via a slider:

Double Pendulum three-body problem drag and adjust gravity

Finally, you can change the gravity, too, via a slider:

Double Pendulum three-body problem drag and adjust size