I'm trying to evaluate a triple integral using NIntegrate. It takes the form:
\begin{align}
\int_{\omega_0-5\delta}^{\omega_0+5\delta} \mathrm{d}\omega \int_{\omega_0-5\delta}^{\omega_0+5\delta}\mathrm{d}\omega' \int_{-1+\epsilon}^{1+\epsilon}\mathrm{d}s\: g(\omega)g(\omega')F(s)
\end{align}
where
\begin{align}
F(s) \propto \frac{1}{(s+2n+1)(s+2n-1)}\left(\frac{1+s}{1-s}\right)^{i \omega}\left( \frac{s+2n+1}{s+2n-1} \right)^{-i\omega'}
\end{align}
The $\epsilon$ is there as a cut-off for divergences near $\pm1$. Anyway, I've tried integrating this with the automatic NIntegrate
with the following settings, which take a long time:
(e.g. Method -> {"AdaptiveMonteCarlo", "SymbolicProcessing" -> 0}
and AccuracyGoal -> 6, PrecisionGoal -> 6
)
and don't end up being accurate anyway (I have a physical intuition as to the maximum value of such integrals) (even though I don't get any warnings).
I then tried 'AdaptiveMonteCarlo':
Method -> {"AdaptiveMonteCarlo",
"SymbolicProcessing" ->
0}, AccuracyGoal -> MinRecursion -> 10^8, MaxRecursion -> Infinity
which is faster, but gives convergence errors:
NIntegrate obtained 1.41829 -0.141122\ I and 0.005438535119730085` \
for the integral and error estimates."
and still yields a slightly wrong answer. Does anyone have any suggestions about the integration strategy I could use in this case, or options on the MonteCarlo integration that would help?
(I have attached the example script here since it didn't format correctly by copy-pasting. The quantity Ineq
should be less than 1 but as shown in the .nb
, it is 1.10927)
\[Omega]0, \[Delta], Int1^2, Int2^2 , Ineq ={0.001,1.49957287164036,0.395907960255947,0.973870207974076}.
? $\endgroup$