hw0 - Homework #0 1. Suppose we have a computer that...

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

View Full Document Right Arrow Icon
Homework #0 1. Suppose we have a computer that performs 3 digit rounding. What absolute and relative errors do you get for the following numbers and operations performed on that computer: (a) 8 . 1146 (b) 1004 . 21 + 2138 . 6 (c) 4 . 369 · 3 . 4 2. Consider a computer that performs 3 digit rounding for the following: (a) Find an example of positive real numbers a and b such that the floating point representation for a - b has an absolute error 1000. (b) Find an example of positive real numbers c and d such that the floating point representation for c - d has a relative error that exists and is 90%. 3. For the following, work with exact arithmetic: (a) Suppose x = 1 but our approximation is x * = 1 . 001. What are the absolute and relative errors of 10 6 · ( x - 1 . 0005) when using the approximation? (b) Suppose x = 1 but our approximation is x * = 1 . 001. What is the absolute error of the operation 1000000 k =1 x when using the approximation?
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 note was uploaded on 10/17/2010 for the course MATH 174 taught by Professor Staff during the Spring '08 term at UCSD.

Page1 / 3

hw0 - Homework #0 1. Suppose we have a computer that...

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