15.08.2015 Views

Introduction to the Modeling and Analysis of Complex Systems

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.3. COBWEB PLOTS FOR ONE-DIMENSIONAL ITERATIVE MAPS 71x maxx 1x tx minx minx 0x t-1x maxFigure 5.6: Drawing a cobweb plot (3).Cobweb plots can also be drawn using Python. Code 5.4 is an example <strong>of</strong> how <strong>to</strong> drawa cobweb plot <strong>of</strong> <strong>the</strong> exponential growth model (Code 4.9). Its output is given in Fig. 5.10.Code 5.4: cobweb-plot.pyfrom pylab import *a = 1.1def initialize():global x, resultx = 1.result = [x]def observe():global x, resultresult.append(x)def f(x): ### iterative map is now defined as f(x)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!