Trigonometric optimization#6860