0% found this document useful (0 votes)
53 views

Assignment1-Cse330 Spring2024

This document provides instructions for Assignment 1 of CSE 330 (Spring 2024) which covers three key topics: 1. Calculating the maximum and minimum numbers that can be stored using different floating point number representations including standard, normalized, and denormalized forms. 2. Converting a decimal number to binary format, storing it using different floating point representations, and calculating the rounding error when converting back to decimal. 3. Solving a quadratic equation, identifying where loss of significance occurs, showing how the calculated roots do not satisfy the fundamental properties of polynomials, and correctly evaluating the roots without loss of significance.

Uploaded by

jyahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Assignment1-Cse330 Spring2024

This document provides instructions for Assignment 1 of CSE 330 (Spring 2024) which covers three key topics: 1. Calculating the maximum and minimum numbers that can be stored using different floating point number representations including standard, normalized, and denormalized forms. 2. Converting a decimal number to binary format, storing it using different floating point representations, and calculating the rounding error when converting back to decimal. 3. Solving a quadratic equation, identifying where loss of significance occurs, showing how the calculated roots do not satisfy the fundamental properties of polynomials, and correctly evaluating the roots without loss of significance.

Uploaded by

jyahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CSE 330 (Spring 2024)

Assignment 1 [CO4]

1. In the classes, we discussed three forms of floating number representations as shown below,
(1) Standard/General Form, (2) Normalized Form, (3) Denormalized Form.
Now, let’s take, β = 2, m = 3 and −2 ≤ e ≤ 4. Based on these, answer the following:

(a) (3 marks) What are the maximum/largest numbers that can be stored in the system by
these three forms defined above (express your answer in decimal values)?
(b) (3 marks) What are the non-negative minimum/smallest numbers that can be stored in the
system by the three forms defined above (express your answer in decimal values)?
(c) (4 marks) What are the maximum/largest and minimum/smallest numbers that can be
stored in the system by the three forms defined above if the system has negative support?

2. Consider the real number x = (6. 235)10


(a) (3 marks) First convert the decimal number x in binary format at least up to 9 decimal/binary
places.
(b) (4 marks) What will be the binary value of x [Find fl(x)] if you store it in a system with m = 5
and m =6 using the general/standard form of Floating point representation.
(c) (3 marks) Now convert back to the decimal form the stored values you obtained in the
previous part, and calculate the rounding error of both numbers.

2
3. Consider the quadratic equation, 2𝑥 − 60x + 3 = 0. Below calculate up to 6 significant
figures.
(a) (4 marks) Find out where the loss of significance occurs when you calculate the roots?
(b) (3 marks) Show that the roots evaluated in the previous part do not satisfy the fundamental
properties of a polynomial.
(c) (3 marks) Evaluate the correct roots such that loss of significance does not occur.

You might also like