22.01.2014 Views

download searchable PDF of Circuit Design book - IEEE Global ...

download searchable PDF of Circuit Design book - IEEE Global ...

download searchable PDF of Circuit Design book - IEEE Global ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14 Some Fundamental Numerical Methods<br />

f(a)<br />

f(x}<br />

f(a t hl<br />

flbl<br />

I<br />

I<br />

I<br />

------1-----<br />

I<br />

I<br />

------,----1----<br />

~h ,I h4<br />

Figure 2.3.<br />

,+ h<br />

b<br />

x<br />

The trapezoid rule for numerical integration.<br />

methods, such as Gaussian quadrature, based on weighted-sample schemes,<br />

but calculation <strong>of</strong> the weights consumes time and memory. The latter meth;)ds<br />

pose difficulties in recursive calculation <strong>of</strong> estimates <strong>of</strong> increasing order, thus<br />

limiting their use as computer aids.<br />

The Romberg integration method first approximates the integral as the area<br />

<strong>of</strong> just one trapezoid in the range <strong>of</strong> integration, then two, continuing for i<br />

evenly spaced trapezoids until a larger i does not change the answer significantly.<br />

The other main feature <strong>of</strong> the Romberg method is deciding how many<br />

trapezoids are enough. The width <strong>of</strong> each trapezoidal area starts at h = b - a,<br />

then h/2. The areas found for these values are linearly extrapolated versus h'<br />

to h=O; when the estimate using width h/4 is found, the extrapolation to<br />

h = 0 is quadratic, and this is tested against the linearly extrapolated answer<br />

for convergence. There is a sequence <strong>of</strong> estimates for decreasing trapezoid<br />

widths and increasing degrees <strong>of</strong> extrapolation until either convergence or a<br />

state <strong>of</strong> numerical noise is obtained. The Romberg method is very efficient,<br />

stahle, and especially suitable for digital computing. However, the integrand<br />

must be computed from an equation, as opposed to using measured data.<br />

In the next four sections it will be shown how the formulas for trapezoidal<br />

integration, repeated linear interpolation, and the Romberg recursion are<br />

obtained. A BASIC language program will then be described, and an example<br />

will be considered. Finally, a once-repeated trapezoid rule will be shown to<br />

yield Simpson's rule for integration; this will be used in Chapter Four.<br />

2.3.1. Trapezoida/1ntegration. The integration problem is to find the value<br />

<strong>of</strong> the integral T given the integrand f(x) and the limits <strong>of</strong> integration a and b:<br />

T(a,b)= ff(X)dx.<br />

(2.17)<br />

Summing the two trapezoidal areas in Figure 2.3 yields<br />

T<br />

= (f,+f'+h fHh+fh)<br />

h 2 + 2 '<br />

(2.18)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!