Lab #2 Instructions and Tips

Since we haven’t had time to cover the material for this lab (Chapter 3) I’ll spend the first 45 minutes or so of this lab session lecturing on that material. You’ll have plenty of time to complete the lab afterward (remember, it isn’t due till 11:59PM Friday!)

Note that Discussion 3.7 is not Exercise 3.7 (which you do not have to do). For D3.7 you can ignore the tip about the sin function and (as usual for all our labs) just do:

  >>> from numpy import *
  >>> from matplotlib.pyplot import *

When coding up sums, remember the Obi Wan problem!

Any explanations required (like “visually reasonable” for E3.3) can be done in a sentence or two, below the plot.

As you did last week, you will copy/paste code and figures into a Pages document and export it as PDF for uploading to Sakai. This time, be sure to indicate the exercise that you are doing in each part of the writeup, using boldface:

Discussion 3.7

etc.

For a professional look, use Courier New font for your code.

Those of you who’ve studied programming before may be tempted to use conditionals (“if”) or loops (“for”) in some of these answers. You will get no credit if you do this. You should use the just the constructs to do this lab, without resorting to explicit conditionals or loops.