Science and Computers I -- PHY307/607

Lab 3. - Java Buttons and Period Doubling

In the first part of this lab you will learn how to add a clickable button to your HelloWorldApplet. You will then use another Java applet - the BifurcateApplet to explore the approach to chaos in the logistic map.

Adding buttons to the HelloWorldApplet

  1. What do you see ?
  2. What happens when you click on the button ?

Period Doubling as a route to chaos

In Netscape go to the PHY307 homepage. Look under the LABS section and link to the Java applet Bifurcation Applet. You should see a graph appear within your browser. Hit the Go button.
  1. The plot shows the possible values of the variable x seen under iteration of the logistic map we have discussed in class (and which you studied in lab. 2). This map takes the form
    
    x_n+1=ax_n(1-x_n)
    
    
    The possible values of x are plotted as a function of the value of the parameter a. Over what region of a is a single value of x seen ? This is sometimes called a 1-cycle or fixed point.
  2. How many values of x are seen just to the right of this region ? The values of x in this nearby region form a 2-cycle. The possible values of x alternate between two values i.e the period of oscillation is 2. Fixed points have periods of magnitude 1. Thus the transition between the two is called a period doubling transition.
  3. Now we will look closely at the region close to a=3.0. To do this type the value 2.9 into the box labelled by a_1= and set a_2=3.1. Remember to hit return after typing each of the numbers. Now hit Go again. Estimate the value of a at which the period doubling occurs. Call this value p_1.
  4. Now we will look closely at the region close to a=3.4. Set a_1=3.4 and a_2=3.5. Remember to hit return after typing each of the numbers. Now hit Go again. What happens to the curves close to x=3.44 ? We say that the 2-cycle has split into a 4-cycle via another period doubling transition. This splitting is sometimes called a bifurcation (hence the name of the applet!). Estimate the value of a where this happens - call it p_2.
  5. Finally look at the region near a=3.5. Set a_1=3.5 and a_2=3.56. Locate the approximate value of a at which another period doubling transition occurs. Call this value p_3.
  6. Compute the quantity
    
    (p_2-p_1)/(p_3-p_2)
    
    
    This will turn out to be an important universal number called Feigenbaum's delta. The significance of this number will be discussed in class.
  7. Finally, set a_1=3.6 and a_2=3.9. Hit Go. The screen should be almost full of points as you are in the middle of a chaotic region where seemingly all values of x are attained during iteration of the map. But look closely in the region of a=3.8-3.85. What do you notice ? How many values of x are seen there ? This is an example of a periodic window. Suddenly, in the midst of chaos order reemerges...
    To get credit for this lab you need to
    1. Email me the url to your Web page so that we can take a look at your working Hwa3 applet.
    2. Answer the questions posed in the lab -- hand in your answers on paper.
    The deadline to get these things to me is next Thursday.

    Back to the PHY307 Homepage

    This page maintained by Simon Catterall, last updated 13 September, 2000.