16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

8.5. RECONSTRUCTING AN ATTRACTOR 347<br />

Although the data appears to be con¯ned to the approximate range 0 to 10, it<br />

is not clear at ¯rst glance whether it represents deterministic chaos or is simply<br />

a \noisy" set of data. Can we con¯rm that it is the former and identify the<br />

probable identity of the underlying map? Calling this the \Humpty Dumpty<br />

map," can we then reconstruct his or her mathematical \appearance"? Or, at<br />

the risk of sounding rather melodramatic, can we put Humpty Dumpty back<br />

together again?<br />

The number of operands command reveals that there are 200 entries in x.<br />

> N:=nops(x);<br />

N := 200<br />

First, let us plot x versus n and see whether that reveals any pattern that we<br />

might have missed. By default, the N points are joined by straight lines.<br />

> plot([seq([n,x[n]],n=1..N)],labels=["n","x[n]"]);<br />

x[n]<br />

8<br />

6<br />

4<br />

2<br />

0 50 100 150 200<br />

n<br />

Figure 8.15: Time series x versus n.<br />

Although there is a hint of some repetition, it certainly isn't conclusive that the<br />

series comes from a map producing deterministic chaos rather than just being<br />

noisy output. Following the procedure mentioned in the introduction, we will<br />

plot xn+1=10 versus xn=10, the factor of 10 being introduced to reduce both<br />

vertical and horizontal ranges to 0 to 1 in the graph. The points are represented<br />

by size-12 black circles. The graph is assigned a name, gr1, soitcan¯rstbe<br />

displayed and then used to reveal Humpty Dumpty's true identity.<br />

> gr1:=pointplot([seq([x[n]/10,x[n+1]/10],n=1..N-1)],<br />

symbol=circle,symbolsize=12,color=black,<br />

labels=["x[n]","x[n+1]"]):<br />

Entering gr1 with a command-line-ending semicolon,<br />

> gr1; #humpty dumpty?

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

Saved successfully!

Ooh no, something went wrong!