I am trying to find the regions where the integral of a function a function is larger than a certain quantity using RegionPlot. For simplicity's sake, let's say the intergal I am looking to plot is is
F[x_, y_, s_] := NIntegrate[Exp[(x - y)^2/(2*s^2)], {x, -3, 3}]; If I then attempt to plot this using RegionPlot using this code
RegionPlot[F[x, y, s] > 100, {y, -3, 3}, {s, 0.1, 2}] I get the following error message
NIntegrate: The integrand E^((x-y)^2/(2 s^2)) has evaluated to non-numerical values for all sampling points in the region with boundaries {{-3,3}}. followed by throwing an exception
Throw: "Uncaught\!\(Throw[\(-Holonomic`DifferentialRootReduceDump`y[NIntegrate`\LevinRuleDump`x]\) + \\*SuperscriptBox[\"Holonomic`DifferentialRootReduceDump`y\", \"\\[Prime]\",MultilineFunction->None][NIntegrate`LevinRuleDump`x], \NIntegrate`LevinRuleDump`FastLookupHolonomicDifferentialEquation]\) \ returned to top level." So it seems that RegionPlot is actually trying to evaluate F before assigning values to y and s and this is causing NIntegrate to crash. How do I avoid this?



F[]$\endgroup$xin yourRegionPlot[]? $\endgroup$