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.

1.1. PHASE-PLANE PORTRAITS 21<br />

J<br />

1<br />

0.5<br />

–1 –0.5 0 0.5<br />

R<br />

1<br />

–0.5<br />

–1<br />

Figure 1.4: Phase-plane portrait for the love a®air.<br />

By introducing the option scene=[t,R] into phaseportrait, a plot of R<br />

vs. t can be produced. The resulting picture for the ¯rst initial condition is<br />

shown in Figure 1.5, Romeo's initial hate turning to love. Changing R to J in<br />

the scene option will generate J versus t. Try it and see how Juliet responds.<br />

> phaseportrait([de1,de2],[R(t),J(t)],t=0..2,[[ic1]],<br />

stepsize=0.2,scene=[t,R],color=red,linecolor=blue);<br />

R<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

–0.2<br />

0.5 1 1.5 2<br />

t<br />

Figure 1.5: R versus t for the love a®air.

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

Saved successfully!

Ooh no, something went wrong!