Next: Exercise 3.2: Large oscillations
Up: The harmonic oscillator
Previous: The harmonic oscillator
- In Exercise 1.6 we wrote program to simulate simple harmonic
motion.
Now use the program to calculate the relative change
in the total
energy
during one cycle
. Is the function
uniformly small during the cycle? Choose , , and
Compare using Euler's method and 2nd. order Runge-Kutta.
- Plot position and velocity as a function of the time .
- Compute the amplitude for the initial conditions ,
, and , ; choose in both cases.
What quantity determines the value of ?.
- Compute the average value of the kinetic energy and the potential
energy during a complete cycle. Is there a relation between the two
averages?
- Plot the path of the oscillator in phase space . Set
and use different initial conditions
. Do you find different paths for
each of them? What physical quantity distinguishes or characterizes
each path? What is the shape of the phase paths? Is the motion of a
representative point always in the clockwise or
counterclockwise direction?
Next: Exercise 3.2: Large oscillations
Up: The harmonic oscillator
Previous: The harmonic oscillator
Adrian E. Feiguin
2004-06-01