double spring(double age, double hz, double damp) => age < 0.0 ? 0.0 : math.exp(-age * damp) * math.cos(age * hz * tau);