A visualization of 200 double pendulums with slightly different initial conditions, demonstrating chaotic behavior.
- SFML (Simple and Fast Multimedia Library)
- C++17 compiler
- Make build system
Linux:
sudo apt-get install libsfml-dev- Clone the repository:
git clone https://github.com/yursds/double_pendulum_chaos.git
cd double_pendulum_chaos- Build the project:
makeRun the simulation:
./mainModify simulation parameters in include/double_pendulum.h:
- Number of pendulums
- Initial angle ranges
- Physical properties (masses, lengths)
- Visual properties (colors, trail length)
| Key | Action |
|---|---|
SPACE |
Start/Pause simulation |
LEFT/RIGHT |
Adjust first angle (±π/36) |
UP/DOWN |
Adjust second angle (±π/36) |
R |
Reset simulation |
ESCAPE |
Quit application |
