213 - A62 - Predator-Prey

7 days ago by Professor213

John Travis

Mississippi College

var('x,y') init = vector([1,2]).column() A = matrix([[0.9,0.1],[0.2,0.8]]).transpose() stages = [init] stage = init G = point(init.transpose()) for k in range(5): stage = A*stage stages.append(stage) G += point(stage.transpose()) show(stages) G.show()