tanh implemented

we have modified y to range between -1.7 to 1.7