pendulum function

3-magnet pendulum experiment