Solve simple trigonometric equations