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_] :=– Feyre Jan 11 '17 at 10:37NIntegrate[f[k1, w], {k1, 1, 30}], aswisn't numeric. – Feyre Jan 11 '17 at 10:39? NumericQ: see http://mathematica.stackexchange.com/questions/18393/what-are-the-most-common-pitfalls-awaiting-new-users/26037#26037 – Michael E2 Jan 11 '17 at 12:13_in function definitiong[y_,w_]. And adding?_NumericQdidn't help. – ted.l Jan 11 '17 at 12:39