I'm trying to use Manipulate
on my function so that I can adjust parameters a
, r
, and b
to see how the graph changes.
When I use Manipulate
and try to change the values of a, r, and b using the sliders, nothing happens. The graph doesn't change....what am I doing wrong?
f[x_] := f[x - 1] + 2 r*b (f[x - 1]) - a (f[x - 1]);
f[0] = 100000;
Manipulate[DiscretePlot[f[x], {x, 0, 5}], {r, 0, 1}, {a, 0, 1}, {b, 1, 10}]
I've also tried:
Manipulate[ListPlot[Table[f[x], {x, 0, 5}]], {r, 0, 1}, {a, 0, 1}, {b, 1, 10}]
but the sliders still won't do anything.