Escolar Documentos
Profissional Documentos
Cultura Documentos
2-1 Use the Bisection method to find pn , n = 1, 2, ..., 10 for f (x) = x cos x on [0, 1]. (Algorithm 1)
2-2 Find an approximation to 3 correct to within 104 using the Bisection Algorithm. [Hint: Consider
f (x) = x2 3.]
2-3 Use the fixed-point iteration method to find an approximation to 3 that is accurate to within 104 .
Compare your result and the number of iterations required with the answer obtained in the Bisection
Algorithm.
2-4 (i) Use the following algebraic manipulation to show that each has a fixed point at p precisely when
f (p) = 0, where f (x) = x4 + 2x2 x 3.
2 1/4
(a) g1 (x) = (3 + x 2x )
(c) g3 (x) =
x+3
x2 + 2
(b) g2 (x) =
1/2
(d) g4 (x) =
x + 3 x4
2
!1/2
3x4 + 2x2 + 3
4x3 + 4x 1
(ii) Perform four iterations, if possible, on each of the function gi . Let p0 = 1 and pn+1 = g(pn ), for
n = 0, 1, 2, 3. which function do you think gives the best approximation to the solution.
(Algorithm 2)
2-5 (i) Show that if A is any positive number then the sequence defined by
1
A
xn = xn1 +
,
2
2xn1
for n 1,
mf (x)
f 0 (x)
2-9 Show that the Bisection Algorithm gives a sequence with an error bound that converges linearly to 0.
2-10 Use Steffensens method with p0 = 2 to compute an approximation to 3 accurate to within 104 .
Compare your result and the numbers of iterations required with the answer obtained in the Bisection
Algorithm and fixed-point iteration method.
2-11 The following sequences converge to 0. Use Aitkens 2 method to generate {pbn } until |pbn |
1
1
5 102 : (a) pn = , n 1.
(b) pn = 2 , n 1.
n
n
n
1
2
3
4
5
pn
0.5
0.75
0.625
0.6875
0.65626
f (pn )
0.170476
0.134337
0.0203937
0.0563213
0.0178067
n
6
7
8
9
10
pn
0.640625
0.648438
0.644531
0.642578
0.641602
f (pn )
0.00133182
0.00822774
0.00344555
0.00105626
0.000137933
(a)
0
1
2
3
pn
1.18921
1.08006
1.14967
1.10782
f (pn )
0.63922
0.386228
0.240826
0.147105
(c)
0
1
2
3
pn
1.1547
1.11643
1.12605
1.12364
f (pn )
0.289744
0.0700688
0.0177429
0.00444148
(b)
0
1
2
3
(d)
0
1
2
3
pn
1.22474
0.993666
1.22857
0.987506
f (pn )
1.02526
1.04402
1.06842
1.08621
pn
1.14286
1.12448
1.1241231639
1.124123029704334
f (pn )
0.175344
0.0032932
1.23208 106
1.72659 1013
1
A
p = 2 p + 2p p = A.
A
< 0. Then xn < 0 for all n. Then xn converges to p 0, then
(ii) If x0 < 0, then x1 = 12 x0 + 2x
0
A
1
p = A.
p= p+
2
2p
f (3.5)
= 2.607. (The exact solution 6 2.4494897)
0
f (3.5)
f (pn )
f (1)
. Then p1 = 1 0
= 3.5
0
f (pn )
f (1)
2-9 lim
(b) p2 = 0.0363.