A long time back, analog computers were used to simulate mechanical systems and, specifically, solve differential equations. I have been playing with a very small analog computer for the last couple of years.
MATLAB, my new best friend, also has Simulink which allows me to create a virtual analog computer. See attached and notice the cool use of knobs to set the various parameters.
The equation for Damped Harmonic Motion is: my'' + Dy' + Sy = 0 and we'll assume consistent units. Sum of the forces = 0
m is the mass
y'' is the acceleration
D is the damping coefficient
y' is the velocity
S it the spring rate
y is the displacement
FWIW, this is also the equation for an R-L-C circuit.
With Simulink, you can drop integrators, adders and mutlipliers on a sheet and wire them up. We have Lord Kelvin to thank for the approach to solving the equation. Assume we have y'' then integrate once to get y' and integrate again to get y. Now, manipulate those variables to form y'' = (-1/m)*(Dy'+Sy) and stuff this back into the first integrator where we assumed we had y'' which we just created! Toss in the initial values and sit back and watch!
So, what's the point? Sometimes a picture is worth 1000 words and although MATLAB can solve the equation and plot the results mathematically, sometimes it is fun to do it 'old school'.
Just another reason to consider MATLAB...
http://chalkdustmagazine.com/features/analogue-computing-fun-differential-equations/