0% found this document useful (0 votes)
51 views

Fix PT Iteration

This document discusses using fixed point iteration to solve the equation 5x - ex/2 = 0. It provides two choices for the function g(x): 1) g(x) = ex/2 / 5, which converges to the solution 0.22367 after 10 iterations. 2) g(x) = 2 ln(5x), which converges to the solution 7.1543 after 13 iterations. Plots of the iterations are shown for each choice of g(x).

Uploaded by

AhmadMoaaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

Fix PT Iteration

This document discusses using fixed point iteration to solve the equation 5x - ex/2 = 0. It provides two choices for the function g(x): 1) g(x) = ex/2 / 5, which converges to the solution 0.22367 after 10 iterations. 2) g(x) = 2 ln(5x), which converges to the solution 7.1543 after 13 iterations. Plots of the iterations are shown for each choice of g(x).

Uploaded by

AhmadMoaaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

To solve: x f(x)

5x - ex/2 = 0 0 -1
0.1 -0.551271
5x = exp(x/2) 0.2 -0.105171 f(x)
0.3 0.3381658 15

g(x) = exp(x/2) / 5 0.4 0.7785972 10

g'(x) = exp(x/2) / 10 0.5 1.2159746 5

1 3.3512787 0
0 1 2 3 4 5 6
-5
3.3115452 1.5 5.383
-10
0.10005 2 7.2817182
-15
2.5 9.009657
-20
3 10.518311
3.5 11.745397
4 12.610944
4.5 13.012264
5 12.817506
5.5 11.857368
6 9.9144631
6.5 6.7096601
7 1.884548
7.5 -5.021082
8 -14.59815
f(x)

f(x)
2 3 4 5 6 7 8 9
To solve: 5x - ex/2 = 0

FIXED POINT ITERATION - 1


0.1
x = ex/2 / 5
0.01
i x g(x) Error
0.001
1 0.3 0.2323668
0.0001
2 0.2323668 0.2246404 0.0676332
1E-05
3 0.2246404 0.2237742 0.0077265
1E-06
4 0.2237742 0.2236773 0.0008662
1E-07
5 0.2236773 0.2236665 9.689E-05
1E-08
6 0.2236665 0.2236653 1.084E-05
1E-09
7 0.2236653 0.2236651 1.212E-06 0 2 4

8 0.2236651 0.2236651 1.355E-07


9 0.2236651 0.2236651 1.516E-08
10 0.2236651 0.2236651 1.695E-09

First choice of g(x) converges to the solution 0.22367


1

9
0 2 4 6 8 10 12
To solve: 5x - ex/2 = 0

FIXED POINT ITERATION - 2 10

x = 2 ln(5x) 1

i x g(x) Error 0.1

1 6 6.8023948 10 0.01

2 6.8023948 7.0534253 0.8023948 0.001

3 7.0534253 7.1259025 0.2510305 0.0001

4 7.1259025 7.1463486 0.0724773 1E-05

5 7.1463486 7.1520789 0.0204461 1E-06

6 7.1520789 7.153682 0.0057303 1E-07


0 2 4 6 8
7 7.153682 7.1541302 0.0016031
8 7.1541302 7.1542555 0.0004482
9 7.1542555 7.1542905 0.0001253
10 7.1542905 7.1543003 3.503E-05
11 7.1543003 7.1543031 9.793E-06
12 7.1543031 7.1543038 2.738E-06
13 7.1543038 7.154304 7.653E-07

First choice of g(x) converges to the solution 7.1543


4 6 8 10 12 14

You might also like