Instructions: In Assignments 9 and 10, we considered projectile motion using both Excel spreadsheets and MATLAB as the computational and graphing tool. In this assignment, you will revise the problem of harmonic motion using MATLAB as the computational and graphical tool.
Problem 1. Simple Harmonic Motion
Using MATLAB, set up the numerical simulation considered in Section 3.1 of Giordano, which is called "Simple Harmonic Motion." Perform the calculations using Euler's method for coupled ODEs (Equation 3.5) and using the Euler-Cromer's method. Graph your results so that they resemble Figures 3.2 and 3.3.
Example of Graph
Done. See Harmonic.htm
Problem 2. Using a Total Energy Constraint
Giordano, Chapter 3, Problem 1, Page 48.
Example of Graph
Done. See Harmonic.htm
Problem 3. Generalized Harmonic Motion
Giordano, Chapter 3, Problem 4, Page 48.
Example of Graph
Done. See Harmonic.htm
Problem 4. Driven Damped Pendulum Motion (Extra Credit)
Giordano, Chapter 3, Problem 1, Page 55.
Example of Graph