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 andManipulatewill never see thePlotcommand. – Szabolcs Sep 04 '17 at 12:25