chbe2120fall2010hw2 - ChBE 2120 Homework 2 Due: Friday,...

Info iconThis 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
Background image of page 1

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

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

This note was uploaded on 05/01/2011 for the course CHBE 2120 taught by Professor Gallivan during the Spring '07 term at Georgia Institute of Technology.

Page1 / 3

chbe2120fall2010hw2 - ChBE 2120 Homework 2 Due: Friday,...

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