Double Pendulum Motion: Plotting theta2 vs Time

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 4K views
thespaceman
Messages
11
Reaction score
0
Hello all,
I have written a python code implementing the Runge-Kutta fourth order method for higher orders to approximate the motion of a double pendulum. The problem I am having is that my plot of theta2 (angle of second rod) Vs time looks a little off and I am curious if I have it correct.
Attached is a graph of both rod angles Vs time. The blue is the first rod and the green is the second rod. I figure the opinion of some physicists may be insightful. Thanks :)
-thespaceman
 

Attachments

  • DoublePendulum_N-1000000_1stIC.png
    DoublePendulum_N-1000000_1stIC.png
    15.1 KB · Views: 680
Physics news on Phys.org