jliszka.github.io - A Gentleman and a Scala

Example domain paragraphs

Consider a population of rabbits and foxes. The number of rabbits r and the number of foxes f will range between 0 and 1, representing the percentage of some theoretical maximum population. Each generation, the number of rabbits and foxes changes according to a simple rule.

The number of rabbits in generation n+1 , based on the number of rabbits r_n and foxes f_n in the previous generation n , is given by:

The constant a is the rabbits’ birth rate. For example, if a = 3 , then each rabbit produces 2 offspring in the next generation. The factor (1 - r_n - f_n) accounts for deaths due to starvation and predation. If the number of rabbits is low, then few will die of starvation, if it’s high then many will; and likewise if the number of foxes is high, many rabbits will die from being eaten.

Links to jliszka.github.io (1)