Sign of Product of Trigonometric Functions