Developed by K. Roos - Published July 17, 2016
|Levels||First Year and Beyond the First Year|
|Available Implementations||C/C++, Fortran, Glowscript, IPython/Jupyter Notebook, Mathematica, MATLAB, Python, Spreadsheet, and Easy Java Simulations|
Students who complete this set of exercises will - be able to build a model of a simple hanging harmonic oscillator using the Euler algorithm (**Exercises 1 and 2**); - be able to build a model of a simple hanging harmonic oscillator using the Euler-Cromer algorithm (**Exercises 4 and 5**); - be able to produce graphs of the positon, velocity, and total energy as a function of time from the results of their computational model (**Exercises 1-5**); - be able to assess the accuracy of two different computational algorithms (Euler and Euler-Cromer) by comparing results from the different algorithms to each other and to the exact analytical solution (**Exercises 1-5**); - discover that they bloody well can't use the simple Euler method when modeling an oscillatory system (**Exercises 1-3**).
These exercises are not tied to a specific programming language. Example implementations are provided under the Code tab, but the Exercises can be implemented in whatever platform you wish to use (e.g., Excel, Python, MATLAB, etc.).
Share a Variation
Credits and Licensing
K. Roos, "Simple Hanging Harmonic Oscillator," Published in the PICUP Collection, July 2016.
The instructor materials are ©2016 K. Roos.
The exercises are released under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 license