Evaluate
$$\int\limits_{|z|=\frac{1}{5}} \frac{1}{\sin\frac{1}{z}}\text{d}z$$
My attempt: I know that this function has non isolated singularity at $0$, and simple poles at $\frac{1}{n \pi}$. Which ever methods I know are applicable only when all the singularities are isolated. So I tried with Residue theorem but then I realised that the theorem is not applicable here. So now I am stuck. Can any one help please?
I can observe that there are only two poles outside the curve c, one at $1/\pi$ and the other at infinity. Can this be used?
Thanks in advance.
Change variable to $w = \frac1z$, we have
$$\oint_{C_{1/5}} \frac{1}{\sin\frac1z} dz = \oint_{-C_5} \frac{1}{\sin w} \left(-\frac{dw}{w^2}\right) = \oint_{C_5} \frac{1}{w^2\sin w} dw$$
where $C_R$ and $-C_R$ are the circular contour $|z| = R$ in counterclockwise and clockwise orientation.
There are $3$ poles for $w$ inside $C_5$. A triple pole at $w = 0$ and two simple pole at $w = \pm \pi$.
$$\frac{1}{w^2\sin w} \approx \frac{1}{w^2(w - \frac{w^3}{6} + O(w^5))} = \frac{1}{w^3}\left(1 + \frac{w^2}{6} + O(w^4)\right)$$
$$\frac{1}{w^2\sin w} \sim \frac{1}{\pi^2\cos\pi(w \mp \pi)} = -\frac{1}{\pi^2(w \mp \pi)}$$ Summing the residues from these $3$ poles, we get
$$\oint_{C_{1/5}} \frac{1}{\sin\frac1z} dz = 2\pi i\left( \frac{1}{6} - \frac{2}{\pi^2}\right) = \left(\frac{\pi}{3}-\frac{4}{\pi}\right) i \approx -0.2260419935385651 i$$
As a double check, we can compute the integral numerically on wolfram alpha using the command
Int[(i/5)/Sin[5*Exp[-i*t]]*Exp[i*t],{t,0,2*Pi}]and the result do match.