@OrionPaxxx
2019-03-25T11:03:53.000000Z
字数 1431
阅读 908
computationalphysics
1.plot the trajectory of two nearly identical pendulums
2.plot versus time
3.make a qualitative estimate of the corresponding Lyapunov exponent
click here to check the main code
a=chaotic_pendulums()a.pendulum()a.show_result()
the picture was uploaded to github,if failed loading,click here
b=chaotic_pendulums()b.pendulum1()b.show_result1()
the picture was uploaded to github,if failed loading,click here
c=chaotic_pendulums()c.cal_d_theta()c.show_result2()z=np.polyfit(a.t,a.d_theta,1)p=np.poly1d(z)print(z)print(p)
the linear equation: