How To Find Amplitude Of Double Pendulum In Python