I am trying to solve $x/sin(x) = a$ for $x$, where $a$ is a constant. But I can't seem to find a closed form solution for it.
$\begingroup$
$\endgroup$
The function contains poles where sin[x]==0. As the function is a periodic function, many solutions exist for x/sin[x]==a. So, one has to solve these kinds of problems numerically. Please follow @Mariusz Iwaniuk with appropriate bounds for x based on requirement.
sol[a_] := NSolve[x/Sin[x] == a && -2 Pi < x < 2 Pi, x, Reals]; sol[2]
$\endgroup$ – Mariusz Iwaniuk Jun 2 '18 at 7:20