Solution of trigonometric equations