
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!

Function Definition
f x( ) − 25 + 82 x⋅ 90 x
2 − ⋅ 44 x
3
4 − ⋅ 0.7 x
5 := + ⋅
Program for Bisection Algorithm
x l
:= 0.5 x u
:= 1 starting interval
N := 10 maximum number of iterations
ε s
:= 10 stopping error
n x r
ε a
x l 0
x l
x u 0
x u
x r i
x l i
x u i
ε a i
x u i
x l i
x u i
x l i
break ε a i
ε s
if <
f l i
f x l i
f u i
f x u i
f r i
f x r i
x l i 1+
if f l i
f r i
⋅ < 0 x l i
, x r i
x u i 1+
if f u i
f r i
⋅ < 0 x u i
, x r i
for i ∈ 0 ..N − 1
i + 1 x r
ε
n = 4 x r
= ε a