fixed traj. plot bug when manual bounds
[iDMC.git] / models / Primer / conb.lua
blob3a671d5090f51a1e11326f2b966fa7324468dbab
1 --% ft| TRAJECTORY_T0_V0_A1_O1 sn| Convergence~to~a~fixed~point n| #0 d| 0.1 n| #1 d| 0.1 n| #2 d| -0.35 n| #3 d| -1 n| #4 d| 0.01 n| #5 d| 0 n| #6 d| 3000 n| #7 d| 3000 n| #8 d| x n| #9 d| y
2 --@@
3 name = "Conb"
4 description = " See Model refs in user's guide"
5 type = "C"
6 parameters = {"a", "b"}
7 variables = {"x", "y"}
9 function f (a, b, x, y)
11 x1 = x^2 + a * x + x * y ^2
13 y1 = b * y^(3/2) - y
15 return x1, y1
17 end
19 function Jf(a, b, x, y)
21 return
23 a + 2 * x + y^2, 2 * x * y,
24 0, - 1 + 3/2 * b * math.sqrt(y)
26 end