Gradient Function of Sin Graph