Subject Administration Administration - Other - Arts Administration


Chaos them: explore the sequence xn+1 = f(xn) where f(x) =r x(1-x), starting with an initial condition x0 between 0 and 1.
Write the matlab code to construct a cobweb diagram of the sequence. Draw the cobweb diagram for different r and different x0. Try to figure out when "chaos" sets in as r increases. Need to test value of x0 .

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

function cobweb(r,x0,N, to_wait)
% r -- the coefficient of f(x)=rx(1-x); r should be in the range of 0 to 4
% x0 -- initial condition (.5 default)
% N -- the number of iterates for which to draw the cobweb (100 default)
% to_wait -- 0 or 1 (0 default)
%       0 -- draw the cobweb straight from the beginning
%       1 -- iterate the point x0 1000 times BEFORE drawing the cobweb N
%       times...

This is only a preview of the solution. Please use the purchase button to see the entire solution


or free if you
register a new account!

Assisting Tutor

Related Homework Solutions

Get help from a qualified tutor
Live Chats