Open Method Examples
Open Method Examples
Open Method Examples
a) Bracketing method
b) Diverging open method
c) Converging open method
Simple Fixed-Point Iteration
Rearrange the function f(x)=0 so that x is on
the left-hand side of the equation: x=g(x)
Use the new function g to predict a new
value of x - that is, xi+1=g(xi)
The approximate error is given by:
𝑥𝑖+1 − 𝑥𝑖
𝜀𝑎 = 100%
𝑥𝑖+1
Example
Solve f(x)=e-x-x
Re-write as x = g(x) by isolating x
(example: x = e-x)
Start with an initial guess (here, 0)
i xi |a| % |t| % |t |i/|t |i-1
0 0.0000 100.000
1 1.0000 100.000 76.322 0.763
2 0.3679 171.828 35.135 0.460
3 0.6922 46.854 22.050 0.628
4 0.5005 38.309 11.755 0.533
′
𝑓 𝑥𝑖 − 0
𝑓 𝑥𝑖 =
𝑥𝑖 − 𝑥𝑖+1
𝑓(𝑥𝑖)
𝑥𝑖+1 = 𝑥𝑖 −
𝑓′(𝑥𝑖)
Pros and Cons
Pro: The error of the i+1th
iteration is roughly
proportional to the square
of the error of the ith
iteration - this is called
quadratic convergence