

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions and questions for quiz 1 in the amsc/cmsc 460 course, which was offered in fall 2007. The quiz covers topics related to computer storage of floating point numbers using a base 2 system with a 5-bit normalized mantissa, a 4-bit exponent, and a sign for each number. The questions ask about the largest delta value for a given code fragment and the relative errors and backward error bounds for approximations of the solutions to a quadratic equation.
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


AMSC/CMSC 460 Quiz 1 , Fall 2007
Show all work. You may leave arithmetic expressions in any form that a calculator could evaluate. By putting your name on this paper, you agree to abide by the university’s code of academic integrity in completing the quiz. Use no books, calculators, cellphones, communication with others, scratchpaper, etc.
Name
Student number
For this page of the quiz, assume you have a base 2 computer that stores floating point numbers using a 5 bit normalized mantissa (x.xxxx), a 4 bit exponent, and a sign for each. Assume that all numbers are chopped rather than rounded.
x = 1; for j=1:2^ (20), x = x + delta; end
For the computer specified above, what is the largest value of delta for which the final value of x is 1? Explain your reasoning.
(a) (5) What is the relative error in the values x 1 = .85, x 2 = −.85 as approximations to the two solutions to the equation?
(b) (5) Give a backward error bound for x 1 = .91, x 2 = −.91 as approxima- tions to the two solutions to the equation.