I am trying to plot a polynomial inside Manipulate
with indexed coefficients.
Surprisingly, only an empty plot is generated.
Any help welcome.
Block[{n = 3},
Manipulate @@ {
Column[{
Sum[a[i] x^i, {i, 0, n}],
Plot[Evaluate@Sum[a[i] x^i, {i, 0, n}], {x, -5, 5}]
}],
Sequence @@ Table[{{a[i], 0}, -2, 2}, {i, 0, n}]
}]
Regards Robert
Manipulate @@
? Because of this thePlot[...]
evaluates early andManipulate
will never see thePlot
command. $\endgroup$