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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.3. COBWEB PLOTS FOR ONE-DIMENSIONAL ITERATIVE MAPS 73x maxx 3x 2x 1x tx minx minx 0x t-1x 1x 2x maxFigure 5.8: Drawing a cobweb plot (5).plot(rng, map(f, rng), ’k’)### drawing trajec<strong>to</strong>ryhorizontal = [result[0]]vertical = [result[0]]for x in result[1:]:horizontal.append(vertical[-1])vertical.append(x)horizontal.append(x)vertical.append(x)plot(horizontal, vertical, ’b’)show()Exercise 5.7 Using Python, draw a cobweb plot <strong>of</strong> <strong>the</strong> logistic growth model withr = 2.5, K = 1, N 0 = 0.1.

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

Saved successfully!

Ooh no, something went wrong!