Here is our problem:
Suppose g[y,z] and f[x,z] is complicated,we have to solve it numerically.
Writing this in Mathematica:
Clear["`*"]
g[y_, w_] := 1/(w - y + I*0.1)
f[x_, w_] := (x*x)/(w - x + I*0.1)
NIntegrate[(g[k2, w]/(1 - NIntegrate[f[k1, w], {k1, 0, 30}])), {k2, 0,
30}, {w, -1, 2}]
the error message is
NIntegrate::inumr: The integrand x^2/((2. +0.1 I)-x) has evaluated to non-numerical values
for all sampling points in the region with boundaries {{0,30}}.
g[y_, w_] :=
,f[x_, w_] :=
$\endgroup$NIntegrate[f[k1, w], {k1, 1, 30}]
, asw
isn't numeric. $\endgroup$? NumericQ
: see mathematica.stackexchange.com/questions/18393/… $\endgroup$_
in function definitiong[y_,w_]
. And adding?_NumericQ
didn't help. $\endgroup$