{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chbe2120fall2010hw2 - ChBE 2120 Homework 2 Due Friday...

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

View Full Document Right Arrow Icon
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.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern