{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chbe2120fall2010hw2

chbe2120fall2010hw2 - ChBE 2120 Homework 2 Due Friday...

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

ChBE 2120 Homework 2 Due: Friday, September 3 at 8:05 AM In this homework assignment you will modify the Gauss elimination code we wrote in class to detect zero pivots and then use your code to solve a chemical engineering mass balance problem. Part 1 : Modify the Gauss elimination function that we all made together in class to check for a zero in the denominator at any place where the code performs a division. (The code is located in the “Resources” section of the T-square website, and also under this assignment in the T-Square website.) For example: if (abs(den) < 1e-12) error(‘Code is attempting to divide by zero.’) end checks to see if the denominator called den is approximately zero. This is needed in computer programming, since the denominator being considered may not be exactly zero due to roundoff errors in memory. Rename the function from myge_class.m to mygehw2_yourGtIdName.m in the filename (e.g., mygehw2_mstyczynski6) and mygehw2_yourGtIdName (in the first line of the function). Include the following comments after the first line of your function, changed as appropriate for you: % Mark Styczynski % GT account ID: mstyczynski6 % ChBE 2120 % Homework 2 % Due: September 3, 2010 Make sure that your code is commented throughout, to describe the variables and the steps in the code. Part 2 : (Adapted from Felder and Rousseau, Problem 4.58) Methane reacts with chlorine to produce methyl chloride (CH 3 Cl) and hydrogen chloride.

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