File: UserParameter.htm

package info (click to toggle)
cain 1.10+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 29,856 kB
  • sloc: cpp: 49,612; python: 14,988; xml: 11,654; ansic: 3,644; makefile: 133; sh: 2
file content (70 lines) | stat: -rw-r--r-- 1,881 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

<html>
<head>
<title>Parameter Editor</title>
</head>
<body>
<h1>Parameter Editor</h1>

<p align="center">
<img src="ParameterEditor.png">
</p>

<p>
Model parameters are constants that you can use in the expressions for the
species initial amounts and the reaction propensities. The <tt>ID</tt>
field is required, but the name is optional (and hidden by default).
For the value you can enter
a number or any Python expression. You can use the standard mathematical
functions and constants as well as other parameters to define the values.
You will get an error message if the parameters cannot be evaluated.
Below is an example of a valid set of parameters.
<!--CONTINUE: Tables are not currently rendered correctly.
<table border="1">
<tr><th>ID<th>Value<th>Name
  <tr><td>R<td>sqrt(10)<td>Radius
  <tr><td>Area<td>pi * R**2<td>
  <tr><td>Volume<td>H * Area<td>
  <tr><td>H<td>5.5<td>Height
</table>
-->
</p>

<pre><b>
ID        Value        Name</b>
-----------------------------
R         sqrt(10)     Radius
Area      pi * R**2
Volume    H * Area
H         5.5          Height</pre>


<p>
It is permitted to use the mathematical constants <tt>pi</tt> and <tt>e</tt>
as parameter identifiers. In this case, the values you assign to them
will override their natural values. You may also use the names of Python
built-in functions and math functions as parameter identifiers.
However, to avoid confusion it best to avoid such names.
The following set of parameters are valid, but misleading.
Below <tt>lambda</tt> has the value <tt>cos(6)</tt>.
<!--CONTINUE: Tables are not currently rendered correctly.
<table border="1">
  <tr><th>ID<th>Value
  <tr><td>pi<td>3
  <tr><td>e<td>2
  <tr><td>sin<td>pi * e
  <tr><td>lambda<td>cos(sin)
</table>
-->
</p>

<pre><b>
ID        Value</b>
---------------
pi        3
e         2
sin       pi * e
lambda    cos(sin)</pre>

</body>
</html>