Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The equation of motion of a damped, unforced pendulum is 0+0+ sin 0 = 0. m The total energy of the pendulum is E

The equation of motion of a damped, unforced pendulum is 0+0+ sin 0 = 0. m The total energy of the pendulum

The equation of motion of a damped, unforced pendulum is 0+0+ sin 0 = 0. m The total energy of the pendulum is E = ml2/2+mgl(1- cos(0)). Suppose a pendulum has m = 2, g = 9.81, l = 3, and coefficient of friction = 0.5, all in SI units. Write a well-commented script program that uses the Modified Euler's method with h = 0.01 to simulate the movement of the pendulum from a starting position of (0(0), 8(0)) = (.9, 0) until the energy falls below 0.01 Joules (use a while loop). Record the steps in matrices Y and T and plot the motion. Turn in your program and plot.

Step by Step Solution

3.40 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

import numpy as np from scipyintegrate import odeint import matplotlibpyplot as plt Constants and in... 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

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Finance questions

Question

How did Socrates challenge the relativism of Protagoras?

Answered: 1 week ago