Jump to content

Logistic Map Visual Study


Lee Mac

Recommended Posts

As many of you will know, I am currently studying for a degree in Mathematics, and, as part of the course, we study the dynamics of such functions as the Logistic Map.

 

I've always been fascinated by this ostensibly simple map, which produces astoundingly complex dynamics resulting in chaos if a single parameter is varied.

 

Quick Overview of the Logistic Map

 

The Logistic map was originally devised as a population model, to measure the growth of a population, noting that the rate of reproduction of a species is proportional to the existing population and restricted by the available resources and competition for such resoures.

 

We are iterating the difference equation:

 

x[n+1] = rx[n](1-x[n]) 

For varying values of 0

 

Function maximum occurs at r/4, hence for 0

 

For 0

 

For 1

 

As r approaches 3, convergence to the fixed point x=r-1/r becomes increasingly slow, and a periodic point of period 2 appears when 3

 

From here we have a period-doubling cascade with the period doubling at a rate of approximately 4.669 (the Feigenbaum Constant).

 

For r > 3.57 chaos emerges, with 'islands of stability' for various values of r at which periods of order 5,6,7 emerge.

 

For r=4 the interval [0,1] is mapped to a set resembling a Cantor Set, with Hausdorff Dimension of about 0.538.

 

A Visual Study of the Logistic Map

 

To view the general dynamics of the Logistic Map, I have created a program where the parameter 'r' and the initial state 'x' can be varied, and the long-term behaviour of the model is displayed.

 

logistic.pngLogistic.gif

 

To run the program:

 

  • Download the attached Logistic.lsp and Logistic.dcl files.

 

  • Ensure the Logistic.dcl file is located in an AutoCAD Support Path.

 

  • Load the Logistic.lsp like any other LISP program (for instructions on how to do this, see here).

 

  • Run the program by typing 'Logistic' at the AutoCAD command-line.

 

I hope that I have sparked some interest in this area of mathematics and look forward to discussing the subject with the community.

 

Enjoy!

 

Lee

logistic.lsp

logistic.dcl

Edited by Lee Mac
Link to comment
Share on other sites

Note that it may be demonstrated that the chaotic properties of the Logistic Map arise in any map with a single peak in [0,1].

 

To demonstrate this using my above program, try changing the value of the iterated function on Line 46:

 

The Logistic Map (current):

 

(setq f (lambda ( x ) (* r x (- 1 x))))

logistic.png

 

The Tent Map:

 

(setq f (lambda ( x ) (if (< x 0.5) (* 0.5 r x) (* 0.5 r (- 1 x)))))

TentMap.png

 

A Sinusoidal map:

 

(setq f (lambda ( x ) (* 0.25 r (sin (* pi x)))))

SinusoidalMap.png

 

An Elliptical Map:

 

(setq f (lambda ( x ) (* 0.5 r (sqrt (* (- x) (1- x))))))

 

EllipticalMap.png

Edited by Lee Mac
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...