Critical numbers of a trigonometric function