MA/CS/EGR 537: Assignment 2

This is due Thursday, September 25 in class. Please e-mail your Matlab script(s) to

before class. Please bring to class the pencil and paper part and the code part.

Problem 15 on page 159 should be implemented using Matlab (do not copy the solution from the back of the book: translate it). Generate a matrix with the form [ -1, 2, -1 ] and a random right hand side of size 25 (set the seed for the random number generator with a number of your choice that is part of your code). Inspect the factors L and U. How many rows of L and U do you really need to compute before the rows repeat? Speculate why the the factors converge to constants.

Cheers,
Craig C. Douglas