Ranges and sets of values
In several sections of the script file, it is possible to indicate in a condensed fashion a whole range of numerical values. For example in the [data] section we can assign a set of concentrations to a set of primary data files simply by listing the concentrations one after each other, separated by comma.
Example
files f1, f2, f3, f4, f5
vary concentration S = 1.0, 2.0, 3.0, 4.0, 5.0
In other sections of the script file we can specify a set of values by using the combination from x1 to x2 step x3, which assumes a linear scale for the set of values and creates a sequence
, or from...to...step logarithm, which creates the logarithmic sequence
.
Example 1
Generate the series of values 1.0, 2.0, 3.0, 4.0, and 5.0 for the concentration of substrate S:
variable S = from 1.0 to 5.0 step 1.0
Example 2 Generate the series of values 1, 2, 4, 8, and 16 for the concentration of substrate S:
variable S = from 1 to 16 step 2 logarithmic
Often we need a logarithmically spaced series of values which however includes zero as the first (lowest) element. For this purpose, it is necessary to add the notation add zero to the line of text on which the logarithmic series is defined:
Example 3
Generate the series of values 64, 32, 16, 8, 4, 2, 1, and 0 (!) for the concentration of inhibitor I:
variable I = from 64 to 1 step 0.5 logarithmic, add zero
|