Hello,
I’m trying to use nested “Manipulate” (as explained in the “Advanced Manipulate Functionnality” page of the Mathematica tutorial) to plot a polynomial of arbitrary order n. The corresponding function appears to be well-defined and controllable inside the “Manipulate” environment, but I can’t find a way to plot it!
f[a_, n_, x_] := Sum[a[i] x^i, {i, 1, n}]
Manipulate[
With[{value = {f[a, n, x], Plot[f[a, n, x], {x, -3, 3}]},
controls = Sequence @@ Table[{a[i], 0, 1}, {i, 1, n}]},
Manipulate[value, controls]], {n, 1, 3, 1}]
Is there any obvious reason for this code not to work?
Thanks for your ideas!
Regards

