Fixed Point Iteration on an interval
Mostra commenti meno recenti
I have the fixed point iteration x(i+1) = g(xi) where g(x) = 1 - 5x + 15/2x^2 - 5/2x^3. I want to find an initial guess that will make the FPI cycle endlessly through the numbers in the interval (0, 1).
I've found the roots on matlab to be 2.1597 + 0.0000i, 0.4201 + 0.0932i and 0.4201 - 0.0932i but I don't know how to use this to find the initial guess.
Any tips would be greatly appreciated!
2 Commenti
Roger Stafford
il 15 Mag 2016
You're still using the wrong roots! The "fixed points" would be the roots of the equation
x = 1 - 5x + 15/2x^2 - 5/2x^3 .
For these three values you would have x(i+1) equal to x(i) so that the iteration would not change values.
Risposte (2)
Walter Roberson
il 16 Mag 2016
syms g(x)
g(x) = 1 - 5*x + 15/2*x^2 - 5/2*x^3
solve( g(x) == g(x+1))
9 Commenti
Britt
il 16 Mag 2016
Walter Roberson
il 16 Mag 2016
Plot g(x) from about -3 to +3.
Solve g(x) = 0 and solve g(x) = 1.
Armed with the roots and the graph you should be able to see where g(x) has a value between 0 and 1. You will get two distinct ranges.
Walter Roberson
il 17 Mag 2016
Anywhere in that range should work, but there is second range outside of [0,1] which will also result in cycling over [0,1]
Britt
il 17 Mag 2016
Walter Roberson
il 17 Mag 2016
No, the second interval is between 2 and the last root of solve(g(x)==0)
Britt
il 17 Mag 2016
Walter Roberson
il 18 Mag 2016
I am confused. In this alternate version, is the idea to find initial values that cycle over [1, 2] instead of [0, 1], and you want to know the range of initial values that will lead to that cycling over [1, 2] ?
Britt
il 18 Mag 2016
John D'Errico
il 18 Mag 2016
Modificato: John D'Errico
il 18 Mag 2016
Perhaps you are asking how to do this:
syms x
g = 1 - 5*x + 15/2*x^2 - 5/2*x^3;
x0 = solve(diff(g) - 1)
x0 =
1 - 5^(1/2)/5
5^(1/2)/5 + 1
x0d = double(x0)
x0d =
0.55279
1.4472
xiter = x0d(1);
xiter = double(subs(g,x,xiter))
xiter =
0.10557
xiter = double(subs(g,x,xiter))
xiter =
0.55279
xiter = double(subs(g,x,xiter))
xiter =
0.10557
xiter = double(subs(g,x,xiter))
xiter =
0.55279
xiter = double(subs(g,x,xiter))
xiter =
0.10557
Now, lets see that happens when we start from the second root.
xiter = x0d(2)
xiter =
1.4472
>> xiter = double(subs(g,x,xiter))
xiter =
1.8944
>> xiter = double(subs(g,x,xiter))
xiter =
1.4472
>> xiter = double(subs(g,x,xiter))
xiter =
1.8944
>> xiter = double(subs(g,x,xiter))
xiter =
1.4472
>> xiter = double(subs(g,x,xiter))
xiter =
1.8944
As you should see, in either case, the iterations cycle infinitely. This was done by choosing points where g'(x) was equal to 1.
I'll let you do some reading to understand why that happens. Perhaps start here, but I'm sure there are better places to look.
1 Commento
Britt
il 18 Mag 2016
Categorie
Scopri di più su Get Started with MuPAD in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!