Solve trigonometric equations in multiples of the angle