Question: Look up the Logistic Map equation: x n + 1 = r x n ( 1 - x n ) , Implement a plot of

Look up the Logistic Map equation:
xn+1=rxn(1-xn),
Implement a plot of this equation in this matlab code:
Try the program with various values of r and x1.
Here is what you should get for r=3.0 and x1=0.6 :
For r=3.7 and x1=0.6 :
This illustrates with a simple equation the phenomenon known as the "Butterfly
Effect":XMAX =100;
x = zeros(1, XMAX);
r = input("Enter r: 0.0 to 4.0");
x1= input("Enter initial x: 0.0 to 1.0");
% Compute and plot the logistic equation
% for x1 through XMAX with a blue line.
% Compute and plot the logistic equation
% for x1+1e-9 through XMAX with a red line.
% Both plots should be on the same graph.
% After how many iterations do the plots
% diverge for r =3.8?
Look up the Logistic Map equation: x n + 1 = r x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!