In this advanced course on applications of complex function theory at one point in an exercise the highly oscillatory integral
$$I(\lambda)=\int_{-\infty}^{\infty} \cos (\lambda \cos x) \frac{\sin x}{x} d x$$
has to be approximated for large values of $\lambda$ using the saddle point method in the complex plane.
Due to its highly oscillatory nature, this integral is very hard to evaluate using most other methods. These are two fragments of the graph of the integrand for $\lambda = 10$ at different scales:
A leading order asymptotic approximation is
$$I_{1}(\lambda) = \cos \left(\lambda-\frac{1}{4} \pi\right) \sqrt{\frac{2 \pi}{\lambda}}$$
and a further (much smaller) refinement adds the term
$$I_2(\lambda)=\frac{1}{8} \sin \left(\lambda-\frac{1}{4} \pi\right) \sqrt{\frac{2 \pi}{\lambda^{3}}}$$
A graph of the approximated values as a function of $\lambda$ looks as follows:
Now comes my question: to visually see how good the approximation is, I'd like to compare it to the "real value" of the integral, or more precisely to a good approximation to the same integral using an independent algorithm. Due to the smallness of the subleading correction, I would expect this to be real close.
I tried to evaluate the integral for some $\lambda$ using other algorithms, but with very little success: Mathematica and Matlab using the default numerical integrator don't manage to produce a meaningful value (and report this explicitly), mpmath using both the doubly exponential $\tanh(\sinh)$ substitution and the Gauss-Legendre method produces very noisy results, though it does have a slight tendency to oscillate around the values that the saddle point method gives, as this graph may show:
Finally I tried my luck with a Monte-Carlo integrator using importance sample that I implemented, but I didn't manage to get any stable results either.
Does anyone have an idea of how this integral could be independently evaluated for any fixed value of $\lambda > 1$ or so?