Is there a systematic way to determine the order of a pole of a function? For instance, I want to calculate the residues of $\frac{1}{\sin z}$, for the poles at $k\pi$.
If the poles are simple, and apparently they are, it's easy to see the residues to be $(-1)^k$. However, how can one tell the poles are simple?