This preview shows pages 1–2. Sign up to view the full content.
AMSC/CMSC 660
Quiz 1
,
Fall 2006
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, other electronic devices, communica
tion with others, scratchpaper, etc.
1. (8) For each machinerepresentable number
r
, de±ne
f(r)
to be the next
larger machinerepresentable number. Consider the following statements:
(a) For ±xed point (integer) arithmetic, the distance between
r
and
f(r)
is constant.
(b) For ²oating point arithmetic, the relative distance
(f(r)r)/r
is constant (for
r
6
= 0).
Are the statements true or false? Give examples or counterexamples to ex
plain your reasoning.
Answer:
(a) This is true. The integers are equally spaced, with distance equal to 1,
and you can easily generate examples.
(b) This is only
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
This homework help was uploaded on 02/05/2008 for the course CMSC 660 taught by Professor Oleary during the Fall '06 term at Maryland.
 Fall '06
 oleary

Click to edit the document details