repo.or.cz
/
iDMC.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed double error message reporting in trajectory plot
[iDMC.git]
/
models
/
Primer
/
conbif.lua
blob
40194ce965fbcafb9bbeccab34db4ff9cf7b522a
1
--% ft| TRAJECTORY_T1_V0_A1_O1 sn| Convergence~to~a~fixed~point n| #0 d| 0.2 n| #1 d| -0.9 n| #2 d| 0.02 n| #3 d| 0 n| #4 d| 500 n| #5 d| 500 n| #6 d| x
2
--@@
3
name
=
"Conbif"
4
description
=
"See Model refs in user's guide"
5
type
=
"C"
6
7
parameters
= {
"mu"
}
8
9
variables
= {
"x"
}
10
11
12
function
f
(
mu
,
x
)
13
14
x1
=
x^
3
+
x^
2
- (
2
+
mu
)*
x
+
mu
15
16
return
x1
17
18
end
19