Untitled Document Book Cover

PC-based compiling

Course Design

Compiling Hints

Scanf() information.

Assorted C routines.


Program files

Useful, free, scientific software.

Links (open in new window):
Will's Homepage

Simulating Ecological and
Evolutionary Systems in C

Will Wilson
Cambridge University Press

UK Paperback ISBN: 0521776589 (GBP 18.95)
UK Hardback ISBN: 0521772281 (GBP 52.50)
US Paperback ISBN: 0521776589 ($29.95 US)
US Hardcover ISBN: 0521772281 ($85 US)
Amazon.com Paperback ISBN: 0521776589 ($29.95 US)


Computer simulations provide a powerful tool for understanding ecological and evolutionary systems. Many recent advances in theoretical ecology and evolution have been made by bringing together biological, mathematical, and computational approaches, yet there are very few books available that contain this particular mix of information. Simulating Ecological and Evolutionary Systems in C models a diverse range of biological processes and systems, including competition, foraging, predation, mating systems, and life-history optimization, by simulating large collections of interacting individuals. Using the widely available computer programming language C, the book starts with elementary programs modeling stochastic birth-death processes, slowly increasing programming complexity as the chapters progress. All the important features of C are covered, including arrays, files, pointers, and structures, within biologically motivated simulations. Although computer simulations of extremely complicated biological processes are released from rigid mathematical constraints, each of the simulations is also placed in the context of a mathematical formulation examined either analytically or numerically. Procedures covered include testing random number generators, producing PostScript files, root-finding, numerical integration and using the genetic algorithm.

Here are links to the downloadable code used in my book. Feel free to download, use, and modify these programs to meet your needs, but you are not allowed to use the code for commercial purposes.

Here it is, Spring 2010, a decade later, and my theory work has ended. I've recompiled it, and added bookmarks to the pdf. Here it is, free of charge, without printing rights. If you like the book, then, please, go buy a copy.