Equations involving Sine and Cosine