Wave Propagation in Linear Media | re-examined
Wave Propagation in Linear Media | re-examined
Wave Propagation in Linear Media | re-examined
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
6.5 Considerations for a Mathematica implementation<br />
0.001<br />
-6<br />
1. 10<br />
-9<br />
1. 10<br />
-12<br />
1. 10<br />
-15<br />
1. 10<br />
0 50 100 150 200<br />
Figu<strong>re</strong> 6.4: Extrapolation error e S (k)<br />
n , S for k = 12 and vary<strong>in</strong>g n, computed with the 2 algorithm<br />
( ) and the -algorithm ( ).<br />
In[24]:= a = 20 Pi;<br />
firstval = N[Integrate[S<strong>in</strong>[Sqrt[x^2 - a^2]]/(x^2 - a^2) x,<br />
fx,20 Pi,21 Pig],40];<br />
seq = Table[NIntegrate[S<strong>in</strong>[Sqrt[x^2 - a^2]]/(x^2 - a^2) x,<br />
fx,i Pi,(i+1) Pig],<br />
fi,21,350g];<br />
partial = FoldList[Plus,firstval,seq];<br />
errtab = Table[fne,ns,Log[10,Abs[SetP<strong>re</strong>cision[<br />
SequenceLimit[Take[partial,fns+1,ns+ne+1g],<br />
WynnDeg<strong>re</strong>e->1],40]-N[Pi/2,40]]]g,<br />
fne,6,50,1g,fns,0,60,1g];<br />
The <strong>re</strong>sults for WynnDeg<strong>re</strong>e->1 a<strong>re</strong> shown <strong>in</strong> g. 6.5 . It is <strong>in</strong>te<strong>re</strong>st<strong>in</strong>g to notice that if only a<br />
small number of terms a<strong>re</strong> used for extrapolation, peaks appear whe<strong>re</strong> the extrapolation error<br />
becomes unexpectedly high. These peaks seem to be <strong>re</strong>lated to the a<strong>re</strong>as of the sequence<br />
whe<strong>re</strong> the alternation is not very pronounced | the `nodes' of its wave-like envelope. A<br />
contour plot of the <strong>re</strong>sults ( g. 6.6) <strong>re</strong>veals that these peaks follow the l<strong>in</strong>es 2 ne + ns = const.<br />
This is not surpris<strong>in</strong>g if we <strong>re</strong>member that each pass of the sequence transformation <strong>re</strong>duces<br />
the length of the sequence by two. In the end the<strong>re</strong> may be either one or two members left<br />
depend<strong>in</strong>g on whether we started with an odd (2m +1) or even (2m +2) number of sequence<br />
members. Both <strong>re</strong>sults | after exactly the same number m of transformations | a<strong>re</strong> not<br />
supposed to di er very much. If su cient terms a<strong>re</strong> used for the extrapolation or if it is<br />
started whe<strong>re</strong> the wave packets a<strong>re</strong> broad enough (for low ne but high ns), then we obta<strong>in</strong><br />
151