CS3331: 數值方法 (Numerical Methods)

Homework 3

Instructor: Roger Jang


Due date: Dec. 11, 1998

  1. (10%) Exercise P4.5 (page 147)

  2. (20%) Exercise P5.1 (page 164)

  3. (15%) Exercise P5.4 (page 165)

  4. (20%) Construct the code for a MATLAB function called bisect, which takes an arbitrary function, fname, and an interval known to contain a root, x0 and x1, and returns a root to a tolerance tol. The calling grammar of bisect should be something like this:
    root = bisect('fname', x0, x1, tol);

  5. (5%) Use the above function to find the root of x3-2x-5=0 when the tolerance is 10-6 and the initial interval is [0, 3].

  6. (20%) Exercise P6.1 (page 177)

  7. (10%) Exercise P6.3 (page 178)