trigonometric problem