I'm looking for an analytical solution to the equation $$\frac{\sin n\theta}{\sin m\theta}=a \quad (n,m\in\mathbb Z)$$ where the constant $a$ is real and can be both positive and negative.
The solution is needed for the unknown $\theta$; the rest of the parameters are known.
One approach I took was to write the sine functions as $\sim (e^{i x} - e^{-ix})$ which resulted in a polynomial equation of degrees set by $n$ and $m$, with no apparent analytical solution.
Is there an alternative route that can be taken, even by using special functions?