Homework 2

due Tuesday, February 12, 7:20 pm (NO LATE HOMEWORK ACCEPTED)

 

Reading

Behrooz Parhami, Computer Arithmetic: Algorithms and Hardware Design

 

Problems (submit all problems on paper, not WebCT)

Problem 1: 2 points

Parhami, Chapter 1, Problem 1.4a. Hint: "If and only if" means that your proof must show the equivalence in both directions.

Problem 2: 2 points

Parhami, Chapter 1, Problem 1.4b. Hint: "If and only if" means that your proof must show the equivalence in both directions.

Problem 3: 2 points

Parhami, Chapter 2, Problem 2.8

Problem 4: 2 points

Parhami, Chapter 2, Problem 2.4a and 2.4b (i.e. do part a and part b).

Problem 5: 2 points

Two numbers A and B represented in RNS( 8 | 7 | 5 | 3 ) look as follows:

A = ( 7 | 0 | 3 | 0 )RNS
B = ( 6 | 5 | 4 | 0 )RNS

Find decimal values of A and B.
Perform addition, subtraction, and multiplication of A and B in the RNS representation and in the decimal representation.
Demonstrate that the results obtained from both computations represent the same values.

Problem 6: 2 points

Determine all bits of the ANSI/IEEE standard single-precision representation of the following numbers:

a. 98765.541992187510 × 2-42
b. - 0.00000100011011110112 × 2-122
c. the result of: -5.476632110 - (-infinity)
d. the result of: 6.8710 / (-infinity)

Problem 7: 2 points

Perform the following computations in the Galois Field GF(24) (note that · is the multiplication sign):

a. "1001" · "0111"
b. "1101" · "0101"

Assume the use of the irreducible polynomial P(x) = x4 + x + 1.