Message Boards Message Boards

0
|
396 Views
|
6 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Help with exercise 9.4 in An Elementary Introduction to the Wolfram Language?

Posted 27 days ago

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? Screen shot of Exercise 9.4

POSTED BY: Marcel
6 Replies
Posted 25 days ago

It seems that ListLinePlot is expected. Try:

Manipulate[
  ListLinePlot@Table[n^p,{n,1,100}],{p,-1,1}
]
POSTED BY: Hans Milton
Posted 25 days ago

Yes, ListLinePlot of a table was expected:

Manipulate[ListLinePlot[Table[n^p, {n, 1, 100}]], {p, -1, 1}]

Thanks for the tip. Case closed.

POSTED BY: Marcel
Posted 26 days ago

That answer is not accepted by the system. As noted, information on AxisOrigin is not given in the question.

POSTED BY: Marcel

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.

POSTED BY: Gianluca Gorni
Posted 26 days ago

No, it cannot be AxesOrigin and PlotRange as they are not given in the question.

POSTED BY: Marcel

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.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract