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 byExplanation / 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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.