function xdot = rabbits2(x, t)
  ##
  ## In this example, rabbits and coyotes "interact"
  ## by the population of rabbits suffering proportionally
  ## to the number of encounters, and the population of
  ## coyotes benefiting from the number of encounters.
  ## The number of encounters is assumed to be proportional
  ## to each population, i.e. to the product of the populations.
  ##
  xdot(1) = x(1) * (-0.1 * x(1) + 1) - .1 * x(1) * x(2);
  xdot(2) = x(2) * (-0.2 * x(2) + 2) + .2 * x(1) * x(2);
endfunction
