From 640a433fa8be6c0269db148e08ccf2bfe03957ca Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 11 Jan 2017 17:19:41 -0800 Subject: examples: expand on lotke-voltera --- examples/lotka_volterra/model.modelica | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/lotka_volterra/model.modelica') diff --git a/examples/lotka_volterra/model.modelica b/examples/lotka_volterra/model.modelica index 1ab761e..706ebc3 100644 --- a/examples/lotka_volterra/model.modelica +++ b/examples/lotka_volterra/model.modelica @@ -1,10 +1,11 @@ model LotkaVolterra + "Predator-Prey equations describing population dynamics of two biological species" parameter Real alpha; parameter Real beta; parameter Real delta; parameter Real gamma; - Real x; - Real y; + Real x "population of prey"; + Real y "population of predator"; equation der(x) = (alpha * x) - (beta * x * y); der(y) = (delta * x * y) - (gamma * y); -- cgit v1.2.3