ChE 240 Sample Midterm Questions
ChE 240 Sample Midterm Questions
Answer the following questions and problems on sheets of paper. DO NOT WASTE TIME
COPYING THE QUESTION. (There is, however, one sketch you will have to reproduce).
Some of these are short questions and some are longer problems. Do not waste time with
long answers to the short question. Number the problems carefully and where appropriate,
draw a box around the answer. Submit your test papers via LMS as a single pdf.
Prob. 2. What are the two main sources of errors in numerical computations? Give a brief
description/definition of each.
Prob. 3. A set of linear algebraic equations can be written in vector-matrix form as:
Ax=b
where A is the coefficient matrix, x, the vector of unknowns, and b the vector of right hand
sides.
What does MATLAB return as a result of the following statements? State clearly whether B and
S are matrices, vectors, or scalars.
B = inv(A)
S = A\b
Prob. 4. Below is a sketch of the first iteration of an algorithm that finds a root of the function,
f(x).
f(x) f(x)
first iteration
x1 xo x
(i) What is this particular algorithm called?
Prob. 5 The exact answer to 7 figures for a certain problem is 3.234567. A numerical
calculation results in an answer of 3.234244. How many significant figures does the
approximate answer have if rounding is used? If chopping is used?
Prob. 6. A popular equation of state is the Carnahan/Starling Equation. It is of the form
2 3 3
P/RT = a η (1 + η + η − η ) / ( 1 − η)
Where P/RT have their usual meaning, a is a constant, and η is the molar density.
6a. Develop Newton’s method for finding η, given all the other parameters. (To make the
notation simpler, use the symbol x instead of the greek letter η and let P/(aRT) = K. )
Write out the recursion relation in detail, i.e. not f(x)/f’(x) for the next guess for η, given an
initial guess.
6b. Write a MATLAB procedure that applies three interations of the algorithm, assuming an
initial guess xo. Do not apply any convergence criterion or input/output – just the inner
loop.
7. Consider two reactions in parallel, both of which involve a reagent A.
2A + B = C
3A + D = E
Starting with a stochiometric mixture of A, B and D, and letting x denote the degree of
conversion to C, and y the degree of conversion to E, the equilibrium conditions may be
written as
K1 = x/[(5 – 2x – 3y)2 (1-x)]
K2 = y/[(5 – 2x – 3y)2 (1-y)]
7a. Write these as a root finding problem to find x and y that satisfy these conditions.
7b. Write out the formula for the Jacobian matrix.
8. There will be a tank problem…