Frequency of a mass-spring