Solve the Trigonometric Equation