r_min = 2.5; r_max = 4; # the range of parameter values we study
n = 1000; # the number of parameter values we consider in this range
t_max = 1000; # how many iterations to simulate per parameter value
p_max = 100; # the last p_max iterations are plotted
x0 = 0.1; # we use the same initial value x0 for all parameters.
r = linspace(r_min, r_max, n);
pop = zeros(p_max, n);
for k = 1:n
x = population(r(k), x0, t_max);
pop(:, k) = x(t_max-p_max+1:t_max);
end
gset nokey;
plot(r, pop, 'b.');
function x = population(r, x0, n)
# simulates n iterations of the logistic map with parameter
# r and initial value x0. The results are returned in the
# array x.
x = zeros(n, 1);
x(1) = x0;
for k = 1:n-1
x(k + 1) = r * x(k) * (1 - x(k));
end
endfunction
Deutsch: Bifurkationsdiagramm der logistischen Gleichung
This work has been released into the public domain by its author, Ap at English Wikipedia. This applies worldwide. In some countries this may not be legally possible; if so: Ap grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.Public domainPublic domainfalsefalse
Original upload log
The original description page was here. All following user names refer to en.wikipedia.
2003-07-03 07:28 Nate Silva 568×393× (60960 bytes) shrunk with pngcrush
2002-09-01 18:24 Ap 568×393× (117287 bytes) Burification diagram of a logistic map
2002-09-01 18:19 Ap 2479×3508× (107003 bytes) Burification diagram of a logistic map
Captions
Add a one-line explanation of what this file represents
{{BotMoveToCommons|en.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} {{Information |Description={{en|Burification diagram of a logistic map Released by the author (en:User:Ap) into the public domain