1. What is the logical bit layout of the number -12.5 in IEEE single-precision format (float)? Separate the3 parts by a space for readability.
2. What is ulps(20,30) in IEEE single-precision?
3. What number is represented by the following IEEE single-precision value?
4. The number 20 can be expressed in binary as 1.01 x 2 4 , and 11 as 1.011 x 2 3 . Assuming 4 bits ofprecision:a) Do the binary arithmetic to compute 20 11. Give the answer in decimal.
b) Repeat part a) using 1 guard digit.
5. What is meant by the measure, the number of ulps between floating-point numbers x and y?
6. Describe the logical bit layout of an IEEE infinity.
7. Describe the logical bit layout of an IEEE NaN.
8. Describe the logical bit layout of an IEEE zero.
9. Describe the logical bit layout of an IEEE subnormal number.
10. How do subnormal numbers differ from normalized numbers with respect to:a) Spacingb) Relative Roundoff Errorc) What are guard digits , and why are they useful?
SECTION 0.23) Convert the following base 10 numbers to binary. Use overbar notation for non-terminating binarynumbers.(a) 10.5
(b)
(c) 5/7
(d) 12.8
(e) 55.4
(f) 0.1
7) Convert the following binary numbers to base 10:(a) 1010101
(b) 1011.101
c) 10111. 01
(d) 110. 10
(e) 10. 110
(f) 110. 1101
(g) 10.010 1101
(h) 111. 1
SECTION 0.35) Do the following sums by hand in IEEE double precision computer arithmetic, using the Rounding toNearest Rule. (Check your answers using MATLAB).a)(1 + (2-51 + 2 -53 )) 1
b) (1 + (2-51 + 2 -522 + 2-53)) 1
SECTION 0.41) Identify for which values of x there is subtraction of nearly equal numbers, and find an alternate formthat avoids the problem.a)1 sec(x)/ tan2(x)
b)1 (1 x)3/X
c) 1 /1+x 1/ 1-x
3) Explain how to most accurately compute the two roots of the equation x2 + bx 1012 = 0 , where b isa number greater than 100.

![[Solved] UVU CS-3320 Numerical Software Development -Assignment 1](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] UVU CS-3320 Numerical Software Development -Assignment](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.