The tan function is undefined where the cosine is zero, which occurs at angles 90° + 180°k (or π/2 + kπ in radians, where k is any integer). This happens becau