To calculate the integral $\int_{0}^\pi e^{k \cos \theta} \cos(k \sin \theta)d\theta$
Calculating the following integral using complex analysis: $\int_{0}^{\pi}e^{a\cos(\theta)}\cos(a\sin(\theta))\, d\theta$