hw3 - Department of Chemical Engineering University of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

hw3 - Department of Chemical Engineering University of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online