{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# hw3 - Department of Chemical Engineering University of...

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

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 to

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern