Computation of the Feigenbaum delta Compute the Feigenbaum delta from the logistic map.…
- User
Computation of the Feigenbaum delta
Compute the Feigenbaum delta from the logistic map. The logistic map is given by
𝑥 𝑡 + 1
𝜇 𝑥 𝑡 ( 1 − 𝑥 𝑡 ) , x t+1 =μx t (1−x t ), and the Feigenbaum delta is defined as
𝛿
lim 𝑛 → ∞ 𝛿 𝑛 , where 𝛿 𝑛
𝑚 𝑛 − 1 − 𝑚 𝑛 − 2 𝑚 𝑛 − 𝑚 𝑛 − 1 , δ= n→∞ lim δ n ,where δ n
m n −m n−1
m n−1 −m n−2
, and where 𝑚 𝑛 m n is the value of 𝜇 μ for which 𝑥 0
1 / 2 x 0 =1/2 is in the orbit of the period- 𝑁 N cycle with 𝑁
2 𝑛 N=2 n .
Here is a reasonable outline:
Loop 1: Start at period- 2 𝑛 2 n with 𝑛
2 n=2, and increment 𝑛 n with each iteration
Compute initial guess for 𝑚 𝑛 m n using 𝑚 𝑛 − 1 , 𝑚 𝑛 − 2 m n−1 ,m n−2 and 𝛿 𝑛 − 1 δ n−1 . Loop 2: Iterate Newton's method, either a fixed number of times or until convergence
Initialize logistic map Loop 3: Iterate the logistic map 2 𝑛 2 n times Compute 𝑥 x and 𝑥 ′ x ′
Loop 3 (end) One step of Newton's method Loop 2 (end)
Save 𝑚 𝑛 m n and compute 𝛿 𝑛 δ n
Loop 1 (end)
Grading will be done on the converged values of 𝛿 𝑛 δ n up to 𝑛
11 n=11. Set 𝛿 1
5 δ 1 =5.
Complete this code: % Compute the Feigenbaum delta % Store approximate values in the row vector delta for assessment, where length(delta)= num_doublings and % delta(2:num_doublings) are computed from the algorithm described in Lectures 21-23. num_doublings=11; delta=zeros(1,num_doublings); delta(1)=5; % Write your code here
% Output your results fprintf('n delta(n)\n'); for n=1:num_doublings fprintf('%2g %18.15f\n',n,delta(n)); end
- Assistant