Exercise 9.4 in the interactive version of "An Elementary Introduction to the Wolfram Language". The published book does not contain an answer key for that exercise.
I've been puzzling over why my answer is slightly different from the expected output. Any hints?
It seems that ListLinePlot is expected. Try:
ListLinePlot
Manipulate[ ListLinePlot@Table[n^p,{n,1,100}],{p,-1,1} ]
Yes, ListLinePlot of a table was expected:
Manipulate[ListLinePlot[Table[n^p, {n, 1, 100}]], {p, -1, 1}]
Thanks for the tip. Case closed.
That answer is not accepted by the system. As noted, information on AxisOrigin is not given in the question.
Try this:
Manipulate[Plot[n^p, {n, 0, 100}, AxesOrigin -> {0, 0}], {p, -1, 1}]
On my system, this looks exactly the same as the expected output.
No, it cannot be AxesOrigin and PlotRange as they are not given in the question.
Pay attention to where the horizontal axis crosses the vertical one in the two plots. You are probably expected to give fixed values to AxesOrigin and PlotRange, to make the various curves more easily comparable when you move the slider.
AxesOrigin
PlotRange