fixed traj. plot bug when manual bounds
[iDMC.git] / models / Primer / flip.lua
blobdf2f2ff945e0c4b55e47cdd64d92a8514c620053
1 --% ft| BIFURCATION_1 sn| Period-doubling~route~to~chaos n| #0 d| 0.1 n| #1 d| mu n| #2 d| 0.5 n| #3 d| 2.1 n| #4 d| -2.2 n| #5 d| 2.2 n| #6 d| 500 n| #7 d| 100 n| #8 d| x
2 --% ft| TRAJECTORY_T1_V0_A1_O0 sn| Chaotic~trajectory n| #0 d| 0.1 n| #1 d| 1.9 n| #2 d| 0 n| #3 d| 100 n| #4 d| 100 n| #5 d| x
3 --@@
4 name = "Flip"
5 type = "D"
6 description = "See Model refs in user's guide"
7 parameters = {"mu"}
8 variables = {"x"}
10 function f (mu, x)
12 x1 = mu - x^2
14 return x1
16 end
18 function Jf (mu, x)
20 return -2 * x
21 end