Docsity

Assignment 1 for Numerical Analysis | Math 105A, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Jim Lambers
Math 105A
Summer Session I 2003-04
Homework Assignment 1 Hints
Each homework assignment from the textbook will be accompanied by a handout like this one,
that contains hints about the exercises. As I receive questions on the assignment, this handout may
be updated with additional information. When this occurs, this will be indicated on the Updates
page of the site,
http://math.uci.edu/∼jlambers/math105a/updates.html
which you should be checking frequently.
Section 1.1
5.
9. (a)
(b)
(c)
(d) To find the required upper bound, you need to determine how large f(3)(x) can get on
the interval [0,1].
15.
19. You do not use MATLAB to compute the appropriate value of n. You need to determine the
smallest value of nso that |Rn(x)|<10−6for xin the interval [0,0.5].
21.
25. (a)
(b)
(c)
Section 1.2
3.
5.
1
pf3

Partial preview of the text

Download Assignment 1 for Numerical Analysis | Math 105A and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Jim Lambers Math 105A Summer Session I 2003- Homework Assignment 1 Hints

Each homework assignment from the textbook will be accompanied by a handout like this one, that contains hints about the exercises. As I receive questions on the assignment, this handout may be updated with additional information. When this occurs, this will be indicated on the Updates page of the site,

http://math.uci.edu/∼jlambers/math105a/updates.html

which you should be checking frequently.

Section 1.

  1. (a) (b) (c) (d) To find the required upper bound, you need to determine how large f (3)(x) can get on the interval [0, 1].

  2. You do not use MATLAB to compute the appropriate value of n. You need to determine the smallest value of n so that |Rn(x)| < 10 −^6 for x in the interval [0, 0 .5].

  3. (a) (b) (c)

Section 1.

  1. (a)

(b) (c) (d)

  1. Use the format for floating-point numbers specified in the text, s 2 c−^1023 (1+f ), where s = ±1, c is an 11-bit binary number and f is a 52-bit binary number. Each number in this problem is specified using c, s and f. For part (d), do not worry about getting all of the digits in the answer in the back of the book. Just try to get as many digits as you can. You can accomplish this by considering each digit of the mantissa separately. For example, the mantissa f = 1000001 corresponds to

1 · 2 −^1 + 1 · 2 −^7 = 0.5 + 0.0078125 = 0. 5078125.

Therefore, if the sign bit s is 0 and the exponent c is 01111111111 in binary, or 1023 in decimal, then the floating point number whose bits are

0 01111111111 1000001000000000000000000000000000000000000000000000

is (−1)s 2 c−^1023 (1 + f ) = (−1)^020 (1 + 0.5078125) = 1. 5078125.

  1. (a)

(b)

  1. In the Matlab notes that I have posted on the Resources page, there is an example in which a system of equations like this one is solved using Cramer’s Rule. That example was not intended to duplicate this homework problem! Please implement the algorithm described in the problem, as it is written. Note: Your answers will not agree with the answers in the back of the book. The problem, as written in the book, requires four-digit rounding arithmetic, but my version of the problem does not.
  2. (a)

(b) (c) (d)