The goal of this project is to display chaos with the mangentic pendulum. Youtube video explaining the problem.
Each purple square is a magnet. Each color represents which magnet it ended up being attracted.
A quick video explaining the magnetic pendulum
In main.c:
"k_f","k_m","k_g" are the force constants.
To add magnets update the "magnets" array and the "numOfMagnets" variable.
mkdir build && cd $_ && cmake .. && cmake --build .
./MagneticPendulum
