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.

64 CHAPTER 5. DISCRETE-TIME MODELS II: ANALYSISshow()Revised parts from <strong>the</strong> previous example are marked with ###. Here, <strong>the</strong> arange functionwas used <strong>to</strong> vary initial x <strong>and</strong> y values over [−2, 2] at interval 0.5. For each initial state, asimulation is conducted for 30 steps, <strong>and</strong> <strong>the</strong>n <strong>the</strong> result is plotted in blue (<strong>the</strong> ’b’ option<strong>of</strong> plot). The output <strong>of</strong> this code is Fig. 5.1, which clearly shows that <strong>the</strong> phase space <strong>of</strong>this system is made <strong>of</strong> many concentric trajec<strong>to</strong>ries around <strong>the</strong> origin.32101234 3 2 1 0 1 2 3 4Figure 5.1: Phase space drawn using Code 5.1.Exercise 5.4 Draw a phase space <strong>of</strong> <strong>the</strong> following two-dimensional differenceequation model in Python:x t = x t−1 + 0.1(x t−1 − x t−1 y t−1 ) (5.11)y t = y t−1 + 0.1(y t−1 − x t−1 y t−1 ) (5.12)(x > 0, y > 0) (5.13)

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

Saved successfully!

Ooh no, something went wrong!