initial import
[iDMC.git] / models / Primer / conlyapa.lua
blobc774171f739d0cda5d0bb51e760667a2a1290074
1 --% ft| TRAJECTORY_T0_V0_A1_O1 sn| Slow~convergence~to~a~fixed~point n| #0 d| 0.1 n| #1 d| 0.2 n| #2 d| 20 n| #3 d| 0.05 n| #4 d| 0 n| #5 d| 50000 n| #6 d| 50000 n| #7 d| x n| #8 d| y
2 --@@
3 name = "Conlyapa"
4 description = "See Model refs in user's guide"
5 type = "C"
6 parameters = {"k"}
7 variables = {"x", "y"}
9 function f (k, x, y)
11 x1 = - x - y^2
12 y1 = k * x * y
14 return x1, y1
16 end
18 function Jf(k, x, y)
20 return
22 -1, - 2 * y,
23 k * y, k * x
25 end