Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use Matlab to adapt pend.m to build the double pendulum. A new pair of rod and b

ID: 3006484 • Letter: U

Question

Use Matlab to adapt pend.m to build the double pendulum. A new pair of rod and bob must be defined for the second pendulum. Note that the pivot end of the second rod is equal to the formerly free end of the first rod: The (x,y) position of the free end of the second rod can be calculated by using simple trigonometry.

8. Adapt pend.m to build the double pendulum. A new pair of rod and bob must be defined for the second pendulum. Note that the pivot end of the second rod is equal to the formerly free end of the first rod: The (x, y) position of the free e using simple trigonometry the first rod: The (x, ) position of the free end of the second rod can be calcu he second rod can be calculated by

Explanation / Answer

The double pendulum is composed of a simple pendulum, with another simple pendulum hanging from its bob. If y1 and y3 are the angles of the two bobs with respect to the vertical, the system of differential equations is y'1 = y2

y2 ={ 3g sin y1 g sin(y1 2y3) 2sin(y1 y3)(y42 y22 cos(y1 y3))} / {3 cos(2y1 2y3)} dy2

y3 = y4

y'4 = {2sin(y1 y3)[2y22 + 2g cosy1 + y24 cos(y1 y3)]} / 3 cos(2y1 2y3) ,

where g = 9.81 and the length of both rods has been set to 1. The parameter d represents friction at the pivot. For d = 0, the double pendulum exhibits sustained nonperiodicity for many initial conditions.

Using the above equations, write a matlab code.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote