iteration chaotique

1 次查看(过去 30 天)
slama najla
slama najla 2012-5-19
hello i need a matlab code that can be able to give me us output positiv intgers from that are included in[1,128] for X and Y but [1,28] for Z , i have this chaotic code but i can't arrive to put a candition that give positiv integers from this intervals:
X=8; K=50; % X: la clé, K: Nombre d’itérations
for i=1:K
X=4*X*(1-X); % itération de la Carte logistique
Y=4*X*(1-X);
Z=4*Y*(1-Y);
end
Please help me if you can.Thanks

采纳的回答

per isakson
per isakson 2012-5-21
Run this function with start value for X in the interval (0,1).
function cssm()
X=0.5325; K=100; % X: la clé, K: Nombre d’itérations
figure
plot3( 1, 1, 1 )
hold on
plot3( -1, -1, -1 )
for i=1:K
X=4*X*(1-X); % itération de la Carte logistique
Y=4*X*(1-X);
Z=4*Y*(1-Y);
% fprintf( '%15f%15f%15f\n', X, Y, Z )
plot3( X, Y, Z, 'd' )
pause( 0.02 )
end
end

更多回答(1 个)

Walter Roberson
Walter Roberson 2012-5-21
If X and Y are currently positive integers, then under what circumstances can X or Y stop being a positive integer in the code?
If X is a currently a positive integer but Y is not a positive integer, then under what circumstances would X continue to be a positive integer and Y would become a positive integer? Likewise for X not currently positive integer but Y being positive integer.
If neither X nor Y are currently positive integer, then under what circumstances can both become positive integers?
Once you have gone through that analysis, you should be in shape for figuring out the circumstances under which X, Y and Z all become positive integers.
  1 个评论
per isakson
per isakson 2012-5-21
zero is that an interger? What about the "spring break"?

请先登录,再进行评论。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by