You may have correctly determined that the reference angle is and then confused cosine with cotangent. To find the correct value of you must find the value of and then determine the correct sign. To determine the correct sign, use the signs of x and y in the fourth quadrant, remembering that: