Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) Write a Pseudo code that produces table 1 (see directly below) table 1: colum

ID: 1860314 • Letter: 1

Question

1) Write a Pseudo code that produces table 1 (see directly below)

table 1: column h: |1/2 | 1/4 | 1/8 | 1/16 | 1/32| 1/64 | 1/128   

column f ' + o(h): | 1.29744| 1.13610 | 1.06519 | 1.03191 | 1.01579 | 1.00785 | 1.00392

column f ' + o(h^2): | 1.04219 | 1.01045 | 1.00261 | 1.00065 | 1.00016 | 1.00004 | 1.00001


2) Write the MATLAB code that accomplishes part 1 above, putting the table into a 7x3 array called Deriv (dont include the header, just the numbers)


3) Expand your Pseudo code in Part 1 to acomplish the Richardson method for this problem.


4) Revise your MATLAB script in part 2 above to acomplish your p-code from part 3.  Add a 4th column in Deriv to show the Richardson result


Extra Credit: on page 191 of the text the author discusses how to generlize the Richardson method to recursively develop new higher order formulas (i.e O(h^6), O(h^8) etc.). Do the math for just the next one - that is O(h^6). No P-code required.


All MATLAB code must be 100% to receive full Rating.


Explanation / Answer

eshape(A,m,n) returns the m-by-n matrix B whose elements are taken column-wise from A. An error results if A does not have m*n elements.