Gradient function for sine

Gradient function of sine