Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

16
Application of Bisection Method Presenting: c

Transcript of Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

Page 1: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

Application of Bisection Method

Presenting:c

Page 2: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

PresenterPresenters :s :

Atif AbbasAtif Abbas

Faisal Zubi

Page 3: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

Oldest known approximation Problem

Numerical Computation;

Root - finding

Problem: Eq. :- Root Approximate

1700 B.C. traced back

Intermediate Value Theorem----1st technique

BISECTION Methodz

Find_ root ‘x’ ? Eq.—form : f(x) = 0 given ‘f’

Number ‘x’ -> zero of ‘f’

Kind of Binary Search

Efficient than stepwise search

Page 4: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

m

. Function----continuous

. F(x) +/- [ _,_ ]

F(x) = 0. Put ‘x’ and

When root lies :-

Page 5: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

Bisection Method :

‘ f ’ __ continuous function

l

x3 f(x3) = 0

f(x1) & f(x2) ________ +/-

Procedure __ work only when

Remember

[x1,x2]

[x1,x2]

f(x1) & f(x2) opposite sign

Page 6: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

x3 midpoint [x1,x2]

= 1 / 2 (x1 + x2)

f (x3) = 0 ___ x = x3 ROOT

if

else f(x3) ------ + /+ , - / - f(x1) or f(x2)

if f(x3) & f(x1) ___ same sign x (x3,x2)

set x1 = x3

if f(x3) & f(x1) ___ opposite sign x (x1,x3)

set x2 = x3 z

Page 7: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

Drawback :

Slow in converging

i.e. # of iterations ___ quite large

Property :

Always converges solution

z

Page 8: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

Demonstration

g

x1

f(x1)

x2

f(x2)

_

+

Page 9: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

k

x3

f(x3)

_

x1

f(x1)

x2

f(x2)

+

Page 10: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

g

x4

f(x4)

x3

f(x3)

_

x1

f(x1)

x2

f(x2)

+

Page 11: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

m

x5

f(x5)

x4

f(x4)

x3

f(x3)

_

x1

f(x1)

x2

f(x2)

+

Page 12: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

Applicationt Zero degree Celsius

With time , temp.

Temp. 0 CMachine Shut down

_ operation time 9 hrs.

_ Machine switch off

_ Temp. 0 C

‘machine’

if

Page 13: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

r x (time,hr)

03579

1113

15

f(x) (temp. Celsius)

- 30

- 25 - 21.5

- 16 - 12.5

- 07- 3.5

+ 0 2

Table of the machine:

Page 14: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

s

From divided difference method

Get the function of the plant

P7(x) = -30 + (x-0)(1.66) + (x-0)(x-3)(0.068) +

(x-0)(x-3)(x-5)(0.0170)+ (x-0)(x-3)(x-5)(x-7)(-0.0098) +

(x-0)(x-3)( x-5)(x-7)(x-9)(0.0025) + (x-0)(x-3)(x-5)(x-7)(x-9)(x-11)(-0.0002) +

(x-0)(x-3)(x-5)(x-7)(x-9)(x-11)(x-13)(-0.0000066) . K

Where ‘K’……..any constant, representing the environmental temp.

Page 15: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

-3.5

-07

-12.5

-16

-21.5

-25

-30

+2 3 5 7 9 11 13 15

l

hrs.

temp.

[ 0,15 ]

Page 16: Application of Bisection Method Presenting: c Presenters : Faisal Zubi.

w

Atif Abbas