How cotangent is defined
Cotangent is the reciprocal of tangent: cot(θ) = 1/tan(θ) = cos(θ)/sin(θ). It is undefined wherever sine equals zero — at 0°, 180°, 360°, and all integer multiples of 180°.
The cotangent function has period 180° (pi radians), the same as tangent.