Animates a spring-mass system moving through a region with spatially varying spring constant. The rest length and height are prescribed by explicit functions of position, producing a spring that stretches and compresses non-uniformly as it travels. This illustrates inhomogeneous oscillatory dynamics without requiring numerical integration.
Controls: Click and drag to orbit, scroll to zoom.