This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Department of Chemical Engineering University of California, Santa Barbara Chemical Engineering 132B Computational Methods in Chemical Engineering Fall 2011 Homework #3 Homework due: Thursday, 20 October 2011 1. Solve problem 10(a) in section 3.1 of Bradie by hand using a calculator. Using the backslash operator in MatLab solve parts (b) and (c) of problem 10. 2. The following MatLab program implements Gauss elimination with partial pivoting for solving equa- tions of the form Ax = b . You can download it from the course web site. In the program, A is the input matrix and b is the column vector of constants. Run the program on the linear system given in Example 3.5 on page 163 of Bradie and verify that the program gives the correct solution. Then annotate the program with comment statements that make it clear that you know exactly what each statement in the program is doing. Modify the program to create a function x = GaussNaive(A,b) that solves the problem without pivoting. Show that it gives the correct results for the matrix used tothat solves the problem without pivoting....
View Full Document
This note was uploaded on 12/29/2011 for the course CHE 132b taught by Professor Ceweb during the Fall '09 term at UCSB.
- Fall '09
- Chemical Engineering