GenDY function

Generate first-order differential of a smoothed sequence Y