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.

1.2. THREE-DIMENSIONAL AUTONOMOUS SYSTEMS 45<br />

trajectory that results if the initial condition is near the other ¯xed point is left<br />

as a problem.<br />

> ic:=[x(0)=0.1,y(0)=0.1,z(0)=0.1]:<br />

To enter the relevant ODEs, the dependent variables x, y, andz must be made<br />

time-dependent. This is done in the following command line.<br />

> vars:=fx=x(t),y=y(t),z=z(t)g:<br />

Substituting the variables into P , Q, andR, and equating to dx=dt, dy=dt, and<br />

dz=dt, yields the RÄossler system of ODEs.<br />

> sys:=diff(x(t),t)=subs(vars,P),diff(y(t),t)=subs(vars,Q),<br />

diff(z(t),t)=subs(vars,R);<br />

sys := d<br />

d<br />

x (t) =¡y(t) ¡ z(t); y(t) =x(t)+0:2y(t); dt dt<br />

d<br />

z (t) =0:2+z (t)(x (t) ¡ 5:7)<br />

dt<br />

Choosing the option scene=[x,y,z] in the DEplot3d command, we plot the<br />

trajectory in x-y-z space over the time interval t = 0 to 150, subject to the<br />

given initial condition. The step size is taken to be 0.01 in order to obtain a<br />

smooth curve. The trajectory is colored with the zhue shading option, and a<br />

particular orientation of the viewing box is chosen.<br />

> DEplot3d([sys],[x(t),y(t),z(t)],t=0..150,[ic],scene=[x,y,z],<br />

stepsize=0.01,shading=zhue,orientation=[-120,60],<br />

tickmarks=[3,3,3],thickness=1);<br />

20<br />

z<br />

10<br />

5<br />

y<br />

0<br />

–5<br />

–10<br />

Figure 1.18: RÄossler's strange attractor.<br />

0<br />

x<br />

10

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

Saved successfully!

Ooh no, something went wrong!