# hw1 - [1/7 Floating Point Arithmetic Part 1 Homework 1...

This preview shows pages 1–5. Sign up to view the full content.

3/15/2016 [1/7] Floating Point Arithmetic Part 1 - Homework 1 - RELATE 1/1 Floating Point Arithmetic Part 1 Consider the following equivalent expressions: 1. 2. Which of the following statements is true under IEEE double-precision arithmetic? 1−1−x x1+1−x Choice* For some , the second expression will underﬂow. x [ϵmach,1) For near , the first expression will be more accurate. x 0 For some , the first expression will underﬂow. x [ϵmach,1) For near , the second expression will be more accurate. x 0

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
3/15/2016 [2/7] Floating Point Arithmetic Part 2 - Homework 1 - RELATE 1/1 Floating Point Arithmetic Part 2 Which of the following is a legitimate reason why cancellation in ﬂoating-point computation is usually bad? Choice* Subsequent operations are likely to underﬂow or overﬂow The digits lost are the least significant The digits lost are the most significant The result is usually not exactly representable
3/15/2016 [3/7] Machine Numbers Part 1 - Homework 1 - RELATE 1/1 Binary Representation Find the first 8 digits of the binary decimal representation of 1/3, with the assumption that rounding toward zero is used. Return these 8 digits as a string in a variable named user_str . The string should not contain any decimal points. For example, both '0.0011100' and '.0011100' would be formated as '0011100'. This problem should be worked by hand (i.e. pencil and paper) and just your final solution entered in the text box below.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
3/15/2016 [4/7] Machine Numbers Part 2 - Homework 1 - RELATE
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern