In mathematics and numerical analysis, the van Wijngaarden transformation is a variant on the Euler transform used to accelerate the convergence of an alternating series.

One algorithm to compute Euler's transform runs as follows:

Compute a row of partial sums

and form rows of averages between neighbors

The first column then contains the partial sums of the Euler transform.

Adriaan van Wijngaarden's contribution was to point out that it is better not to carry this procedure through to the very end, but to stop two-thirds of the way.[1] If are available, then is almost always a better approximation to the sum than . In many cases the diagonal terms do not converge in one cycle so process of averaging is to be repeated with diagonal terms by bringing them in a row. (For example, this will be needed in a geometric series with ratio .) This process of successive averaging of the average of partial sum can be replaced by using the formula to calculate the diagonal term.

For a simple-but-concrete example, recall the Leibniz formula for pi

 

 

 

 

(1)

The algorithm described above produces the following table:

Computing the Euler transform of (1);[2] highlighted values are final results
1.000000000.666666670.866666670.723809520.834920630.744011540.820934620.754267950.813091480.760459900.808078950.764600690.80460069
0.833333330.766666670.795238100.779365080.789466090.782473080.787601290.783679720.786775690.784269430.786339820.78460069
0.800000000.780952380.787301590.784415580.785969590.785037190.785640500.785227710.785522560.785304630.78547026
0.790476190.784126980.785858590.785192590.785503390.785338840.785434100.785375130.785413590.78538744
0.787301590.784992780.785525590.785347990.785421110.785386470.785404620.785394360.78540052
0.786147190.785259190.785436790.785384550.785403790.785395550.785399490.78539744
0.785703190.785347990.785410670.785394170.785399670.785397520.78539847
0.785525590.785379330.785402420.785396920.785398600.78539799
0.785452460.785390870.785399670.785397760.78539829
0.785421660.785395270.785398710.78539803
0.785408470.785396990.78539837
0.785402730.78539768
0.78540021

These correspond to the following algorithmic outputs:

Accuracy of final results
AlgorithmTerm usedValue for Relative error
Naïve partial sums0.8046006...+2.4%
Euler transform0.7854002...+2.6×10−6
van Wijngaarden result0.7853982...+4.7×10−8

References

  1. A. van Wijngaarden, in: Cursus: Wetenschappelijk Rekenen B, Proces Analyse, Stichting Mathematisch Centrum, (Amsterdam, 1965) pp. 51-60
  2. Values calculated via the J expression 'b11.8'8!:2-:&(}:+}.)^:n+/\(_1^n)*%1+2*n=.i.13

See also

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.