You are on page 1of 3

rI*

33

Algorithrn

I'

Re3d

T1'E

MFIIC

43

Mefhod of Frlse P6itioti

t{, :r, .,

,r

to rhe root su'h that


i;;L
"- - - ; and :.r are t*o initial glesses
bion i' e
tt" tlt.r"ll " 'ign Lfrrr)' The pres'ribd pt{ste!:2
and
iterarrons
iia,-;' tli.rr-'."' *mbr ot
3 are ifliriali4lion sleps'

2 Jo <-

Oo)

a f.t i=ltan

in stepsof

s
6
^
8

laJ

begia wrili'convergent solulion"


srop er1

rr'sirn

10

C, *

sgn

Ihen begin

11

eLse

13

t?'t

ci|c)

rt e

12

begin xn

t2

a- J2 erd

.-

x2

fa <- f2 end

l4
15

Id,

4- (4h '? < f(') '\Jo\/6


J,
iftJ.l<ethen

wrie

Does nol converge in

6 Write .r?, /,
l7 Slop
'ft. mo!_"ltL
oll -:5

'

irer3lio

s'

U".",ion

Corp." Oi

is numerlcally lound using Algorithm 3_3 belo*


melhod ro see dre gpeed ol convergen:e ta the

Je)=;-2s=a
Table 3.i

gives $e values

TABLE

oilrr;ables oblained bv using Algo'iL\61

33 faie

33

P6idon Merhod

J,

2
3

LA

z.a
4.8.

4.g',t?l

4.996i
5

4_9994

6J!l

4.8

-21

1838

6.58r-

4.9121
4.E)6\
4.999.1

24.

1.96

-.2'182

-.039
-.0053

1-96

r8.18

-.21X2

-.039

-.casL-/
.0r114

J8 cowLr-i
Algo.ilhm 1.1 Nepton-Rrphson Iletnod
I Rdd ir, epsilon, Cel|a. I
Renatkst ra js he inirial guess, cpsiton is rhc prescrib.d
e.ror,

d.it!

is

lle

p.cscribeLl loEer bound

../3.6
retauve

ior/,and

the mrxinum numbe. of iler-iiions ro be d]lo$.ed.


S6errenrs 3 ro I are reFaEd unrrt dre p.ocerlu.e converees
to a roor or irerarjons equrl ,.

\
a

Jbr' = \ ro a in scps ol I

do

n. J)
j:l+i tta)

ij I i;) < della rlen coro I I


; e \ - lfa/j;)
ii tt' .to)/.!, < epsilirn the^ .ora
rr eJr

5
6
i
3

9 \\'.;!9 'Doer no!

l0 Srop
1l Wrjle

Slop loo smlrll' .ro, rr0,

.- wr.e .on.ers

.r so _Uon

gor

t3

cDn\ergc in a iterations , ;ir,

12 Slop

r.;,rrrl

O!!

fi, i

.Pi.
'ti:

. rr. . )r .,

1,1 Srop

.:.
\\ e i l - arr- o l \ e r."-n onl t - a -, - 0 to rllJ:u"
" "
iEmlion nedlcd. We Eili follow Aleorilhm 3.4l

r \<11.n Rip ,1

fe)=?_1.s=o: f'G)=2t
Sirung value :i =

7.

The iierarons are sho*r in Table 3.4TAI]LE

2
3

5.:8i7

3.4 l]uEalins

Newton,RlphioR \1eGoc

5.?357
5.0070

rlol0

?.9i86

5.!000

0 0700

5.1\1,\l

5 00({)

Ffi

24

.ilrz

1.1'
.

la.57t1
l

.0i:t

a.0r.1

.c.-li,1

10

Obsene tha! c
ur t}e bi.ection ,nd 'alsr po .Lor
ton melhod corverlas

drod \es.on

50

cor@r..R

qlll rily
woltd lerd :o los
-qlich
-urBble for
compuLaron is:

.f

s.8n. clnt djgrl!. An

,afc) -,,/t'.

,t

(3.13)'

IC) - I tx-, )

An algo.;Lhm (o implemenr me ,e.3nr merhod rs given a5


Atgorirhm .1.5. Tle.
sruienl ihould nole Lhi e:,! provided +ten lJ.,r,) _,ftr;_rr
,s * *n,. *e .
cnlc.ron u\ed ro check converseFce is to check iil,.).(
smarl. fiis
cnler.on rs more aDolop.rdre as in lhis meL\od.uc{essi"e vrrue,
ot r,.s tend
t0 fal on erl}ler side ot $e ro,r( qhen a rooL:" ap!rca(hed
]nd che{iios r,\e
v"lue orl.,0) nidhr read ro an e"rLer end
,".",:* .."r".'i, ii,,r.

Ne.*1on-R-aphson

allowen

me$odjrtFn

,/-

is

he number of;ie.alons o le
tu! on "r;.

Algorit
Rema.tr.

2
3

xn, are rro lnjdal guesses !o the rool e is fie lrescrlbd


p.e.ision. delB t\e minjnum ajlo*ed value
oislooe an<i
I rie n,rimum nunbr of indons !o b pe.mitred-

kef\a)
/' e/(rr)

,R?rortt: Sratementl 5 |o tZ are rep3led util


to a .oat or ite.adons erceed

fa, I=1ton inslepsoit d,


,f lf, - fal < dejta then corc rs
rr - tlli . r;a,n\ _ tu.^
f1 + J lrLt
6
l/ lr:t< e then cqa tj
9
.f" a_ f,
1.4 A ._ f1
1

d.re

5
g
7

11
12

:o e .rr
\ ,1

tl wrlte

Doe. nor

14 Srcp

t5 wnte
t6 S'up
l7 Wnl
l8 Stop

Stopr.

.on"e.ge,a,:r,/0,,1

roo mcjl . i,/c

Con,ergen(

i. &, :r

elruon'. i. !r.16

Flnd lbe srnallesr _cosirive roat of rhe loloving eqEadon

'le) =,r -3!+x+

t =o

pir:edur

converEes

You might also like