Sine function and angle manipulation