I want to numerically integrate
l[t_?NumericQ]:=(Cos[-3.2 kx]Cos[-0.999957 t * kz])/(0.0000859982 kz^2+kx^2+ky^2);
NIntegrate[l[t],{kx,-\[Infinity],\[Infinity]},{ky,-\[Infinity],\[Infinity]},{kz,-\[Infinity],\[Infinity]}]
but get the following error
NIntegrate::inumr: The integrand l[t] has evaluated to non-numerical values for all sampling points in the region with boundaries {{[Infinity],0.},{[Infinity],0.},{[Infinity],0.}}.
As you can see I've already tried the ?NumericQ
method, but it didn't change anything, the error appears either way. What can I do?
When I change the integration boundaries to avoid the ones that cause a problem according to the error message I still get the same warning but with the changed values, which I also don't understand.
NIntegrate
is a pure numeric solver,t
should be numeric, too. $\endgroup${t, -0.2, 0.2}
, is this error of importance in that case? $\endgroup$l
with a random number instead oft
, likel[0]
I still get the same error > NIntegrate::inumr: The integrand (Cos[3.2 kx] Cos[0.999957 kz t])/(kx^2+ky^2+0.0000859982 kz^2) has evaluated to non-numerical values for all sampling points in the region with boundaries {{[Infinity],0.},{[Infinity],0.},{[Infinity],0.}}. $\endgroup$Clear[l]
before you definel[t_?NumericQ]
. $\endgroup$int[t_?NumericQ] := NIntegrate[(Cos[-3.2 kx] Cos[-0.999957 t*kz])/(0.0000859982 kz^2 + kx^2 + ky^2) // Rationalize[#, 0] &, {kx, -\[Infinity], \[Infinity]}, {ky, -\[Infinity], \ \[Infinity]}, {kz, -\[Infinity], \[Infinity]}]
. But MMA gives message "numerical integration converges to slowly" $\endgroup$