I'm trying to find the list of x values not included in my domain of $0$ to $2\pi$. My current code is:
f[x_] := Cot[x]/Sin[x]
dom = FunctionDomain[{f[x], 0 <= x <= 2 π}, x, Reals]
NumberLinePlot[{f[x] > 0, f[x] < 0, f[x] == 0}, {x, 0, 2 π},
Ticks -> {{0, π/2, π, 3 π/2, 2 π}}]
Thr above does give me the domain and a broken up plot, but it would be even better to just get the complement of the domain. Is this possible?