CSS 455 Scientific Programming C. Jackels
Winter 2012 February 12, 2012
Homework Assignment #5
These are to be worked individually. Each student is to hand in her/his own assignment at the Catalyst Drop Box the HW5. However, you are expected to communicate with your partner, discuss strategies for solving the problems, etc. In the end, you are to solve it yourself, and your solution should not be identical to your partner’s. What is not allowed is for you to jointly solve the set and turn in your collaborative solution.
The following are to be completed and handed in electronically in final form by Saturday, March 3, 2012, at 11:59 PM. The assignment will be accepted up to 24 hours late for 75% credit and up to 48 hrs late for 50% credit. For each problem hand in whatever is needed for me to understand your work. This should certainly include a program listing (m-file), the relevant output, and any notes needed to understand your approach. The notes should all be gathered in one Word document. The m-files and outputs can either be cut into the Word document or submitted separately as part of the *zip archive. The m-files and outputs, if submitted separately, need to have file names that identify them as a particular homework problem. Your name should be on the Word document and in the comments of the code..
The text is sometimes
written as though you might be doing some of this work by hand. You should
generally use Matlab to carry out anything but the most trivial calculations here.
Problem 5.1 Problem #5 on page 132 of Turner. Show your work.
Problem 5.2. Problem #6 on page 139.
Problem 5.3. Problem #7 on page 139. Typo: comparison is with Exercise 6 above. Rerun the program from the previous problem.
Problem 5.4. This is a combination of exercises on p. 159 of Turner. One approach would be to program the entire set of exercises in one script and then run it for each of the three functions defined in problem 1 on p.159. This problem consists of:
a) Problem 1, page 159 (the three functions are defined here)
b) Problem 4, page 159 (comparison only with exercise 1)
c) Problem 6, page 159.
d)
Problem 8, page 159.