Use Mapping multiple parameters of a function to specific values and supply it with the following version of parameters
.
parameters=Flatten[Table[{a, 1/bInverted}, {a, 1/2, 5, 1/2}, {bInverted, 2, 5}], 1]
Update
Let's redefine myfunction
to be a function of a
, b
and x
.
myfunction[a_, b_, x_] := (b/a)*((a/x)^(b + 1))
Now when you generate parameters
parameters = Flatten[
Table[{a, 1/bInverted}, {a, 1/2, 5, 1/2}, {bInverted, 2, 5}], 1]
and plot it
Plot[myfunction[Sequence @@ #, x] & /@ parameters, {x, 0, 3},
Evaluated -> True]

you get several lines.
You ask
But is there a way in this case to plot myfunction
in a single line instead versus x
for continuous regions for a
and b
?
Certainly it can't be done as a single line, but you could plot a band between the lowest and highest values similar to Plot confidence interval around curve.
A test shows that the lowest values are achieved with the minimum for a
and b
and the largest values for the maximum. So we plot two curves and area shade between them.
Plot[{myfunction[1/2, 1/5, x], myfunction[5, 1/2, x]}, {x, 0, 3},
Filling -> {2 -> {1}}, FillingStyle -> Directive[Opacity[.3], Gray],
PlotStyle -> Black]
