Numerical Methods Contents - SAM
Numerical Methods Contents - SAM
Numerical Methods Contents - SAM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
∥<br />
Let us abbreviate the error norm in step k by ǫ k := ∥x (k) − x ∗∥ ∥ ∥. In the case of linear convergence<br />
(see Def. 3.1.4) assume (with 0 < L < 1)<br />
10 0<br />
x (0) = 0.4<br />
x (0) = 0.6<br />
x (0) = 1<br />
ǫ k+1 ≈ Lǫ k ⇒ log ǫ k+1 ≈ log L + log ǫ k ⇒ log ǫ k+1 ≈ k log L + log ǫ 0 . (3.1.2)<br />
We conclude that log L < 0 describes slope of graph in lin-log error chart.<br />
△<br />
Example 3.1.4 (Linearly convergent iteration).<br />
Linear convergence as in Def. 3.1.4<br />
⇕<br />
error graphs = straight lines in lin-log scale<br />
→ Rem. 3.1.3<br />
iteration error<br />
10 −1<br />
10 −2<br />
10 −3<br />
Iteration (n = 1):<br />
x (k+1) = x (k) + cos x(k) + 1<br />
sinx (k) .<br />
Code 3.1.5: simple fixed point iteration<br />
1 y = [ ] ;<br />
2 for i = 1:15<br />
3 x = x + ( cos ( x ) +1) / sin ( x ) ;<br />
4 y = [ y , x ] ;<br />
5<br />
x has to be initialized with the differentend<br />
6 e r r = y − x ;<br />
values for x 0 .<br />
7 r a t e = e r r ( 2 : 1 5 ) . / e r r ( 1 : 1 4 ) ;<br />
Note: x (15) replaces the exact solution x ∗ in the computation of the rate of convergence.<br />
Ôº¾ ¿º½<br />
Definition 3.1.7 (Order of convergence).<br />
10 1 index of iterate<br />
10 −4<br />
1 2 3 4 5 6 7 8 9 10<br />
A convergent sequence x (k) , k = 0, 1, 2, ..., in R n converges with order p to x ∗ ∈ R n , if<br />
∥<br />
∃C > 0: ∥x (k+1) − x ∗∥ ∥<br />
∥ ∥∥x ≤ C (k) − x ∗∥ ∥p<br />
∀k ∈ N 0 ,<br />
and, in addition, C < 1 in the case p = 1 (linear convergence → Def. 3.1.4).<br />
Fig. 31<br />
✸<br />
Ôº¾ ¿º½<br />
k x (0) = 0.4 x (0) = 0.6 x (0) = 1<br />
x (k) |x (k) −x (15) |<br />
|x (k−1) −x (15) x (k) |x (k) −x (15) |<br />
| |x (k−1) −x (15) x (k) |x (k) −x (15) |<br />
| |x (k−1) −x (15) |<br />
2 3.3887 0.1128 3.4727 0.4791 2.9873 0.4959<br />
3 3.2645 0.4974 3.3056 0.4953 3.0646 0.4989<br />
4 3.2030 0.4992 3.2234 0.4988 3.1031 0.4996<br />
5 3.1723 0.4996 3.1825 0.4995 3.1224 0.4997<br />
6 3.1569 0.4995 3.1620 0.4994 3.1320 0.4995<br />
7 3.1493 0.4990 3.1518 0.4990 3.1368 0.4990<br />
8 3.1454 0.4980 3.1467 0.4980 3.1392 0.4980<br />
Rate of convergence ≈ 0.5<br />
iteration error<br />
10 −2<br />
10 −4<br />
10 −6<br />
10 −8<br />
10 −10<br />
10 −12<br />
p = 1.1<br />
p = 1.2<br />
10 −14 p = 1.4<br />
p = 1.7<br />
p = 2<br />
10 −16<br />
0 1 2 3 4 5 6 7 8 9 10 11<br />
10 0 index k of iterates<br />
✁<br />
Qualitative error graphs for convergence of<br />
order p<br />
(lin-log scale)<br />
Ôº¾ ¿º½<br />
In the case of convergence of order p (p > 1) (see Def. 3.1.7):<br />
ǫ k+1 ≈ Cǫ p k ⇒ log ǫ k+1 = log C + p log ǫ k ⇒ log ǫ k+1 = log C<br />
⇒<br />
log ǫ k+1 = − log C ( )<br />
log C<br />
p − 1 + p − 1 + log ǫ 0 p k+1 .<br />
In this case, the error graph is a concave power curve (for sufficiently small ǫ 0 !)<br />
k∑<br />
p l + p k+1 log ǫ 0<br />
l=0<br />
Ôº¾ ¿º½