Revision 596 trunk/contrib/ecolib/templates/ecology_replacements.sh

ecology_replacements.sh (revision 596)
10 10
#//calculate y(v,s,v)	y=a*elem_div(x, b+x);
11 11
#//calculate y(v,v,v)	y=elem_prod(a, elem_div(x, b+x));
12 12
sed -e 's:function;:Michaelis Menten function, 1st parametarization;:g'\
13
	-e 's:\f$  \f$:\f$ \frac{ax}{b+x} \f$:g'\
13
	-e 's:\\f\$  \\f\$:\\f$ \\frac{ax}{b+x} \\f$ :g'\
14 14
	-e 's:func(:Michaelis_Menten1(:g'\
15 15
	-e 's://calculate y(s,s,s):y=a*x/(b+x);:g'\
16 16
	-e 's://calculate y(v,s,s):y=a*elem_div(x, b+x);:g'\
......
31 31
#//calculate y(v,s,v)	y=a*elem_div(x, a/b+x);
32 32
#//calculate y(v,v,v)	y=elem_prod(a, elem_div(x, elem_div(a,b)+x));
33 33
sed -e 's:function;:Michaelis Menten function, 2nd parameterization;:g'\
34
	-e 's:\f$  \f$:\f$ \frac{ax}{a/b+x} \f$:g'\
34
	-e 's:\\f\$  \\f\$:\\f$ \\frac{ax}{a/b+x} \\f$ :g'\
35 35
	-e 's:func(:Michaelis_Menten2(:g'\
36 36
	-e 's://calculate y(s,s,s):y=a*x/(a/b+x);:g'\
37 37
	-e 's://calculate y(v,s,s):y=a*elem_div(x, a/b+x);:g'\
......
55 55
#//calculate y(v,s,v,v)     y=a*elem_div(pow(x,c), 1+elem_prod(b, pow(x,c)));
56 56
#//calculate y(v,v,v,v)     y=elem_prod(a, elem_div(pow(x,c), 1+elem_prod(b, pow(x,c))));
57 57
sed -e 's:function;:Hill function;:g'\
58
	-e 's:\f$  \f$:\f$ \frac{ax^c}{1+bx^c} \f$:g'\
58
	-e 's:\\f\$  \\f\$:\\f\$ \\frac{ax^c}{1+bx^c} \\f$ :g'\
59 59
	-e 's:func(:Hill(:g'\
60 60
	-e 's://calculate y(s,s,s,s):y=a*pow(x,c)/(1+b*pow(x,c));:g'\
61 61
	-e 's://calculate y(v,s,s,s):y=a*elem_div(pow(x,c), 1+b*pow(x,c));:g'\
......
88 88
	-e 's:a,:alpha,:g'\
89 89
	-e 's:b ;:h ;:g'\
90 90
	-e 's:b):h):g'\
91
	-e 's:\f$  \f$:\f$ \frac{\alpha x}{1+ \alpha hx} \f$:g'\
91
	-e 's:\\f\$  \\f\$:\\f\$ \\frac{\alpha x}{1+ \alpha hx} \\f$: g'\
92 92
	-e 's:func(:HollingII(:g'\
93 93
	-e 's://calculate y(s,s,s):y=alpha*x/(1.0+alpha*(h*x));:g'\
94 94
	-e 's://calculate y(v,s,s):y=elem_div(alpha*x, 1.0+alpha*(h*x));:g'\
......
109 109
#//calculate y(v,s,v)	y=a*elem_div(pow(x,2), pow(b,2)+pow(x,2));
110 110
#//calculate y(v,v,v)	y=elem_prod(a, elem_div(pow(x,2), pow(b,2)+pow(x,2)));
111 111
sed -e 's:function;:Holling Type III function;:g'\
112
	-e 's:\f$  \f$:\f$ \frac{ax^2}{b^2 + x^2} \f$:g'\
112
	-e 's:\\f\$  \\f\$:\\f\$ \\frac{ax^2}{b^2 + x^2} \\f$:g'\
113 113
	-e 's:func(:HollingIII(:g'\
114 114
	-e 's://calculate y(s,s,s):y=a*pow(x,2)/(pow(b,2)+pow(x,2));:g'\
115 115
	-e 's://calculate y(v,s,s):y=a*elem_div(pow(x,2), pow(b,2)+pow(x,2));:g'\
......
133 133
#//calculate y(v,v,s,v)		y=elem_prod(a, elem_div(pow(x,2), b+elem_prod(c,x)+pow(x,2)));
134 134
#//calculate y(v,s,v,v)		y= a* elem_div(pow(x,2), b+elem_prod(c,x)+pow(x,2));
135 135
#//calculate y(v,v,v,v)		y=elem_prod(a, elem_div(pow(x,2), b+elem_prod(c,x)+pow(x,2)));
136
sed -e 's:func(:HollingIV(: g' \
136
sed -e 's:function;:Holling Type IV function;: g' \
137
	-e 's:\\f\$  \\f\$:\\f\$ \\frac{ax^2}{b + cx + x^2} \\f$: g' \
138
	-e 's:func(:HollingIV(: g' \
137 139
	-e 's://calculate y(s,s,s,s):y=a*pow(x,2)/(b+c*x+pow(x,2));: g' \
138 140
	-e 's://calculate y(v,s,s,s):y=a*elem_div(pow(x,2), b+c*x+pow(x,2));: g' \
139 141
	-e 's://calculate y(v,v,s,s):y=elem_prod(a, elem_div(pow(x,2), b+c*x+pow(x,2)));: g' \

Also available in: Unified diff