Determining signs of trigonometric functions in each quadrant