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.

158 CHAPTER 4. NONLINEAR ODE MODELS<br />

producing the phase-plane picture shown in Figure 4.3. In the actual experiment,<br />

the time interval was only about 50 hours. On reducing the time range<br />

to be from t =0to50inthephaseportrait command line, Heather ¯nds that<br />

the curve terminates in the vicinity of the maximum value for Nc. Inthiscase,<br />

both species of yeast survived over the 50 hours of the experiment, with the<br />

cerevisiae dominating over the kephir. However, assuming that enough nutrient<br />

was available, she can see that ultimately only one species would survive over<br />

250 hours and it isn't the cerevisiae, but rather the kephir. This is because the<br />

interaction coe±cient ¯kc is much smaller than ¯ck. In this struggle for existence,<br />

there would be only the victorious kephir and the vanquished cerevisiae.<br />

To see the explicit time evolution of each yeast population, Heather uses the<br />

phase-plane portrait command again, but now creates two plots, one with the<br />

scene option scene=[t,N[k]], the other with scene=[t,N[c]].<br />

> plot1:=phaseportrait([sys],[N[k],N[c]],t=0..300,<br />

[[N[k](0)=0.5,N[c](0)=0.5]],stepsize=0.1,<br />

scene=[t,N[k]],color=red,linecolor=blue):<br />

> plot2:=phaseportrait([sys],[N[k],N[c]],t=0..300,<br />

[[N[k](0)=0.5,N[c](0)=0.5]],stepsize=0.1,<br />

scene=[t,N[c]],color=red,linecolor=red):<br />

On superimposing the two plots with the display command, Figure 4.4 results.<br />

> display(fplot1,plot2g,tickmarks=[3,3]);<br />

8<br />

6<br />

N<br />

4<br />

2<br />

0<br />

100 200 300<br />

t<br />

Figure 4.4: Time evolution of the kephir (saturable curve) and the cerevisiae.<br />

By clicking with the mouse on the plot, the crossover point for the two population<br />

densities occurs at about 164 hours. With her assignment completed,<br />

Heather is grateful that her sister was able to recommend a useful text. She<br />

will have to treat her to a Starbucks latte the next time they get together.

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

Saved successfully!

Ooh no, something went wrong!