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.

72 CHAPTER 5. DISCRETE-TIME MODELS II: ANALYSISx maxx 1x tx minx minx 0x t-1x 1x maxFigure 5.7: Drawing a cobweb plot (4).return a * xdef update():global x, resultx = f(x)initialize()for t in xrange(30):update()observe()### drawing diagonal linexmin, xmax = 0, 20plot([xmin, xmax], [xmin, xmax], ’k’)### drawing curverng = arange(xmin, xmax, (xmax - xmin) / 100.)

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

Saved successfully!

Ooh no, something went wrong!