Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 7

f(x)

Bisection Method
root
xL xU xr f(xl) f(xr) f(xl)(f(xr) Condition
0.5 1 0.75 -1.478125 2.072363 <0 xU=xR
0.5 0.75 0.625 -1.478125 0.681992 <0 xU=xR
0.5 0.625 0.5625 -1.478125 -0.28199 >0 xl=xR
0.5625 0.625 0.59375 -0.28199167251587 0.226453 <0 xU=xR

Stopping: ea<es
take root: 0.59375 5%<10%
Regula falsi

es =10% xL xU f(xl) f(xU) xr f(xr) f(xl)(f(xr)


ea,% 0.5 1 -1.478125 3.7 0.7144235 1.737116 <0
0.5 0.714424 -1.478125 1.737116 0.6569256 1.097907 <0
20
11.11111
5.263158
Condition ea,%
XU=XR
XU=XR 8.752576
f(x) = EXP^(-X) -X
increment δ 0.01
x0 1
true value 0.56714329

xi(root) f(xi) xi+δxi f(xi+δxi) et,%


x0 1 -0.6321 1.01 -0.64578102 76.3222835626
x1 0.53726266554 0.0471 0.542635 0.03857927 5.26861993966
x2 0.56700968536 0.0002 0.57268 -0.0086678 0.02355747435
x3 0.56714342415 -0.000000210 0.572815 -0.00887906 0.0000236532

1. stopping criterion es,% ea<es


2. et,% true error is almost zero
ea,%

86.1287
5.2463
0.02358
True Value 1.664903434

iterations xL f(xL) xU f(xU)


1 1.5 15.7799 2 -35.6637
2 1.65337068 1.1435 2 -35.6637
3 1.664139468 0.0759 2 -35.6637
ea<es = STOP

xr(root) f(xr) f(xL)f(xr) et,% ea,% STOP


1.65337067959 1.1435 xL=xR 0.6927
1.66413946757 0.0759 xL=xR 0.04589 0.64711 CONTINUE
1.66485301496 0.0050 xL=xR 0.00303 0.04286 STOP

You might also like