CSE541; Winter 2012; R.Parent; HW5

CSE541 Homework #5

Answers

Due Date: Tuesday, Feb. 14


GENERAL INSTRUCTIONS
ASSIGNMENT

  1. Given an 8-bit version of the IEEE floating point format that uses a single sign bit, 4 bits for the exponent (excess-7 notation),and the 3-bit mantissa plus the hidden bit:
    1. What does 11000011 equal? Use decimal numbers in normalized scientific notation.
    2. What is the largest value that can be represented. Use decimal numbers in normalized scientific notation.
    3. What is this largest number as a decimal number (not using scientific notation).
    4. In IEEE formats, all zeros (00000000) is used as a special pattern to represent zero (0). Irrespective of this special use, what number would 00000000 represent using the format given above? (in decimal, not using scientific notation)
    5. Considering that all zeros is reserved for the special use of representing '0', what bit pattern is the number closest to zero and what number is it in decimal (not using scientific notation).

  2. For Trapezoidal integration, compare estimates of integration when using one span of width h (call it I1) versus using two spans of width h/2 (call it I2). The equation for I2 can be put in the following form: I2 = k*I1 + s What is k? Give a geometric interpretation of 's'? (e.g. some fraction of the average height of something times the width of something). Show your work.

  3. Consider a function with data points of (x,f(x)) as follows: (-1,-1), (0,0), (1,1)
    1. Derive the Lagrange interpolating polynomial that interpolates the function values.
    2. Derive the Newton form interpolating polynomial that interpolates the function
    3. Using the error term for the Newton form derived in 'b)', compute a bound on the error given the information that f''(x) is identically equal to 6 in the interval under consideration.
    4. Compare the interpolating polynomial you derived in 'b)' and the error term you derived in 'c)' with the actual function of f(x)=x^3 in the interval.

  4. Using Taylor Series expansions, derive an estimate for the second derivative of a function including the error term. Show your work to get any credit. Discuss a geometric interpretation of the equation (e.g. how does it represent the change in direction of the curve)

  5. Consider the following function, f(x) = sin(x). For x in [0,π] use Romberg integration, using 1, 2, and 4 intervals, to estimate integral of the function. Compare to the actual value of the integral.