quiz1 and ans

quiz1 and ans - AMSC/CMSC 660 Quiz 1 , Fall 2006 Show all...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
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 machine-representable number r , de±ne f(r) to be the next larger machine-representable 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
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 homework help was uploaded on 02/05/2008 for the course CMSC 660 taught by Professor Oleary during the Fall '06 term at Maryland.

Page1 / 2

quiz1 and ans - AMSC/CMSC 660 Quiz 1 , Fall 2006 Show all...

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