fixes to README file
[iDMC.git] / models / lv.lua
blobd18fa5ef097eab023f8b403b0c2de32e1b5794a1
1 --% ft| TRAJECTORY_T0_V0_A1_O1 sn| Closed~curve~orbit n| #0 d| 2 n| #1 d| 3 n| #2 d| 1 n| #3 d| 2 n| #4 d| 4 n| #5 d| 3 n| #6 d| 0.01 n| #7 d| 0 n| #8 d| 1000 n| #9 d| 1000 n| #10 d| x n| #11 d| y
2 --@@
3 name = "Lotka - Volterra"
4 description = "See Model refs in user's guide1"
5 parameters = {"alpha", "beta", "gamma", "delta"}
6 variables = {"x", "y"}
7 type = "C"
9 function f(alpha, beta, gamma, delta, x, y)
11 x1 = alpha * x - beta * x * y
12 y2 = - gamma * y + delta * x * y
14 return x1, y2
16 end