16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

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.

340 CHAPTER 8. NONLINEAR DIAGNOSTIC TOOLS<br />

and the outer do loop ended. The N = 200 plots are superimposed with the<br />

display command, yielding the bifurcation diagram shown in Figure 8.13.<br />

x<br />

> display([seq(Gr[m],m=1..N)],view=[Sa..Fa,0..1],<br />

1<br />

0<br />

labels=["a","x"]);<br />

3 4<br />

a<br />

Figure 8.13: Bifurcation diagram for the logistic map for a =2:9 to4.<br />

Starting at a =2:9, the reader can observe period 1 occurring up to a =3:0.<br />

Then the steady-state response undergoes a so-called pitchfork bifurcation to<br />

period 2, followed by clearly seen bifurcations to period four, period eight, and<br />

a barely observable period-sixteen solution. At higher a values, the response is<br />

generally chaotic, but narrow periodic windows also occur. The reader should<br />

be able to see, for example, a period-3 solution for a ¼ 3:83. In this case, the<br />

bifurcation to period 3 is an example of a tangent bifurcation.<br />

Since the periodic windows are often very narrow in terms of the range of a,<br />

one should really increase the number N, but this leads to a longer computing<br />

time. A better approach is to leave N unchanged and zoom in on a particular<br />

range of a by changing the values of Sa and Fa.<br />

Bifurcation diagrams are very useful diagnostic tools for studying the behavior<br />

of nonlinear maps as well as forced oscillator ODEs as one or more control<br />

parameters are varied.<br />

A complementary graphical approach is to calculate the Lyapunov exponent<br />

as a function of a as illustrated in the next recipe.

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

Saved successfully!

Ooh no, something went wrong!