Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Pend code below: % Simple Pendulum solved by Euler's method with out small angle approximation clear; help pendE theta = 10*pi/180; theta_dot =

image text in transcribed

Please use Pend code below:

% Simple Pendulum solved by Euler's method with out small angle approximation clear; help pendE theta = 10*pi/180; theta_dot = 0; tau = 0.1; g_l = 1; nstep = 300; time = 0;

for istep =1:nstep t_plot(istep) = time; th_plot(istep) = theta; acc = - g_l*sin(theta); theta_dot = theta_dot + acc*tau; theta = theta + theta_dot*tau; %Cromer step time = time + tau; end

plot(t_plot, th_plot) xlabel('Time') ylabel('Theta') grid

1S. Consider a pendulum with a harmonically driven pivot The equation of motion is L. where adl)-A, sin(21/T) is the time-varying acceleration of the pivot, write a program that simulates this system; be sure to use a time step appropriate to the driving period, Ts. Show that when the amplitude of the driving acceleration is suffi- ciently high (An >> g), the pendulum is stable in the inverted position (i.e., if6(f = 0) r, then the pendulum oscillates about the point t 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago