



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Graphical depiction of the fundamental difference between the ( a ) bracketing and ( b ) and ( c ) open methods for root location. In ( a ), which is the bisection method, the root is constrained within the interval prescribed by xl and xu. In contrast, for the open method depicted in ( b ) and ( c ), a formula is used to project from xi to xi 11 in an iterative fashion. Thus, the method can either ( b ) diverge or ( c ) converge rapidly, depending on the value of the initial guess. f ( x ) x
xl xu xl xu f ( x ) x
xi xi + 1 f ( x ) x
xi xi + 1 xl xu xl xu xl xu
6.1 SIMPLE FIXED-POINT ITERATION
x y 1 y 2 0.0 0.0 1. 0.2 0.2 0. 0.4 0.4 0. 0.6 0.6 0. 0.8 0.8 0. 1.0 1.0 0. FIGURE 6. Two alternative graphical methods for determining the root of f ( x ) 5 e^2 x^ 2 x. ( a ) Root at the point where it crosses the x axis; ( b ) root at the intersec- tion of the component functions. f ( x ) f ( x ) x x Root Root f ( x ) = e –^ x^ – x f (^) 1 ( x ) = x f (^) 2 ( x ) = e –^ x
Iteration cobwebs depicting convergence ( a and b ) and divergence ( c and d ) of simple fixed-point iteration. Graphs ( a ) and ( c ) are called monotone patterns, whereas ( b ) and ( d ) are called oscillating or spiral patterns. Note that convergence occurs when | g 9 ( x )| , 1. x 1 x y 1 = x y 2 = g ( x ) x 2 x 0 y
x y 1 = x y 2 = g ( x ) x 0 y
x y 1 = x y 2 = g ( x ) x 0 y
x y 1 = x y 2 = g ( x ) x 0 y
FUNCTION Fixpt(x0, es, imax, iter, ea) xr 5 x iter 5 0 DO xrold 5 xr xr 5 g(xrold) iter 5 iter 1 1 IF xr? O THEN ea 5 ` xr^2 xrold xr
IF ea , es OR iter $ imax EXIT END DO Fixpt 5 xr END Fixpt
Pseudocode for fixed-point iteration. Note that other open methods can be cast in this general format. f ( x ) f ( xi ) f ( xi ) – 0 Slope = f ' ( xi ) (^0) x xi +1 xi xi – xi +
Graphical depiction of the Newton-Raphson method. A tangent to the function of xi [that is, f 9 ( xi )] is extrapolated down to the x axis to provide an estimate of the root at xi 11.