Fixed Point Iteration on an interval
显示 更早的评论
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 个评论
Roger Stafford
2016-5-15
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.
回答(2 个)
Walter Roberson
2016-5-16
syms g(x)
g(x) = 1 - 5*x + 15/2*x^2 - 5/2*x^3
solve( g(x) == g(x+1))
9 个评论
Britt
2016-5-16
Walter Roberson
2016-5-16
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
2016-5-17
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
2016-5-17
Walter Roberson
2016-5-17
No, the second interval is between 2 and the last root of solve(g(x)==0)
Britt
2016-5-17
Walter Roberson
2016-5-18
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
2016-5-18
John D'Errico
2016-5-18
编辑:John D'Errico
2016-5-18
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MuPAD 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!