University of Victoria Midterm Exam 1 February 7 2019 Computer Science 349A
University of Victoria Midterm Exam 1 February 7 2019 Computer Science 349A
sm d1 d2 d3 d4 se e1 e2
where sm is the sign of the mantissa, se is the sign of the exponent (1 for negative, 0 for
positive), di are the digits of the mantissa, and ej are the digits of the exponent.
(a) [2 points] Consider the base-5 number, using the above representation, 02003004.
What exact decicmal value does it represent?
(b) [4 points] How does the above hypothetical base-5 computer represent the decimal
value −25.8?
FEB 7, 2019 CSC 349A, 4
3. (a) [4 points] Determine the second order (n = 2) Taylor approximation for f (x) =
ln (x − 1), expanded about a = 2, including the remainder term. Do not simplify the
form of this polynomial; that is, do not multiply out any powers.
(b) [2 points] What is the upper bound on the error in (a) when approximating ln (1.2)?