![]() |
|||
Mathematics & Science
Learning Center |
|||
Applications of Differential EquationsPopulation Dynamics(continued from last page...) Your little session should have gone like this:
MatrixForm[reality] Now that's a lot prettier! Normalizing the TimesClearly, looking over this list, the US population has "steadily" increased over the 190 year period shown. The first column of the data shows the year, which is fine, but in population analysis it is usual to consider the beginning of the data to be represented by time zero, and so on. In other words, to do a proper analysis of the data we should subtract 1790 from each of the first coordinates. This can be easily achieved with a Table command. Look carefully at the following command. It is redefining the variable reality to have a new meaning. reality= Table[{reality[[j,1]]-1790,reality[[j,2]]},{j,22}] Let's carefully pick apart the command:
Did you follow that? Well read it again, and do your best! Now you're going back to Mathematica to enter this new command, but once you have, I want you to also redisplay reality with a MatrixForm command, just like you did a little earlier, to get a clear view of what it looks like. Let's go see what you should have gotten... |
|||
ODE Laboratories: A Sabbatical Project by Christopher A. Barker ©2009 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA e-mail: cbarker@deltacollege.edu |
|||