... | ... | @@ -121,7 +121,7 @@ characters can be used in a label, but the label must then be enclosed |
|
|
in single or double quotes. It makes no difference which type of quotes
|
|
|
is used, as long as the same are used at either end. The preferred form
|
|
|
is double quotes. The use of non-numeric characters is however strongly
|
|
|
discouraged, since it makes it difficult to subsequently process a
|
|
|
discouraged, since it makes it difficult to subsequently process an
|
|
|
_OPAL_ output with another program.
|
|
|
|
|
|
When a name is not quoted, it is converted to upper case; the resulting
|
... | ... | @@ -340,13 +340,13 @@ functions see Table [realfun] acting on operands see Section [operand]. |
|
|
[cols="<,<,<,<",options="header",]
|
|
|
|=======================================================================
|
|
|
|Operator |Meaning |result type |operand type(s)
|
|
|
|*Real operators with one operand* | | |
|
|
|
4+^|*Real operators with one operand*
|
|
|
|
|
|
|`+ X` |unary plus, returns `X` |real |real
|
|
|
|
|
|
|`- X` |unary minus, returns the negative of `X` |real |real
|
|
|
|
|
|
|*Real operators with two operands* | | |
|
|
|
4+^|*Real operators with two operands*
|
|
|
|
|
|
|`X + Y` |add `X` to `Y` |real |real,real
|
|
|
|
... | ... | @@ -364,7 +364,7 @@ functions see Table [realfun] acting on operands see Section [operand]. |
|
|
[cols="<,<,<,<",options="header",]
|
|
|
|=======================================================================
|
|
|
|Function |Meaning |result type |argument type(s)
|
|
|
|*Real functions with no arguments* | | |
|
|
|
4+^|*Real functions with no arguments*
|
|
|
|
|
|
|`RANF()` |random number, uniform distribution in [0,1) |real |-
|
|
|
|
... | ... | @@ -375,7 +375,7 @@ latexmath:[\mu=0] and latexmath:[\sigma=1] |real |- |
|
|
|
|
|
|`USER0()` |random number, user-defined distribution |real |-
|
|
|
|
|
|
|*Real functions with one argument* | | |
|
|
|
4+^|*Real functions with one argument*
|
|
|
|
|
|
|`TRUNC(X)` |truncate `X` towards zero (discard fractional part) |real
|
|
|
|real
|
... | ... | @@ -419,7 +419,7 @@ latexmath:[\sigma]=1, truncated at `X` |real |real |
|
|
|`EVAL(X)` |evaluate the argument immediately and transmit it as a
|
|
|
constant |real |real
|
|
|
|
|
|
|*Real functions with two arguments* | | |
|
|
|
4+^|*Real functions with two arguments*
|
|
|
|
|
|
|`ATAN2(X,Y)` |return inverse trigonometric tangent of `Y/X` |real
|
|
|
|real,real
|
... | ... | @@ -500,9 +500,9 @@ expressions. |
|
|
|`RADDEG` |latexmath:[180/\pi] |57.295779513082 |rad/deg
|
|
|
|`DEGRAD` |latexmath:[\pi/180] |.017453292519943 |deg/rad
|
|
|
|`E` |latexmath:[e] |2.7182818284590 |1
|
|
|
|`EMASS` |latexmath:[m\_e] |.51099906e-3 |GeV
|
|
|
|`PMASS` |latexmath:[m\_p] |.93827231 |GeV
|
|
|
|`HMMASS` |latexmath:[m\_{h^{-}}] |.939277 |GeV
|
|
|
|`EMASS` |latexmath:[m_e] |.51099906e-3 |GeV
|
|
|
|`PMASS` |latexmath:[m_p] |.93827231 |GeV
|
|
|
|`HMMASS` |latexmath:[m_{h^{-}}] |.939277 |GeV
|
|
|
|`CMASS` |latexmath:[m_c] |12*0.931494027 |GeV
|
|
|
|`UMASS` |latexmath:[m_u] |238*0.931494027 |GeV
|
|
|
|`MMASS` |latexmath:[m_\mu] |0.1057 |GeV
|
... | ... | @@ -748,19 +748,19 @@ a pattern string *must* be enclosed in single or double quotes; and the |
|
|
case of letters is significant. The meaning of special characters
|
|
|
follows the standard UNIX usage:
|
|
|
|
|
|
.::
|
|
|
*.*::
|
|
|
Stands for a single arbitrary character,
|
|
|
[letter...letter]::
|
|
|
Stands for a single character occurring in the bracketed string,
|
|
|
Example: ```[abc]`'' denotes the choice of one of `a,b,c`.
|
|
|
Example: `[abc]` denotes the choice of one of `a,b,c`.
|
|
|
[character-character]::
|
|
|
Stands for a single character from a range of characters, Example:
|
|
|
```[a-zA-Z]`'' denotes the choice of any letter.
|
|
|
`[a-zA-Z]` denotes the choice of any letter.
|
|
|
*::
|
|
|
Allows zero or more repetitions of the preceding item, Example:
|
|
|
```[A-Z]*`'' denotes a string of zero or more upper case letters.
|
|
|
`[A-Z]*` denotes a string of zero or more upper case letters.
|
|
|
latexmath:[\backslash]character::
|
|
|
Removes the special meaning of `character`, Example: ```\backslash*`''
|
|
|
Removes the special meaning of `character`, Example: `\*`
|
|
|
denotes a literal asterisk.
|
|
|
|
|
|
All other characters stand for themselves. The pattern
|
... | ... | @@ -943,7 +943,7 @@ There are also three functions allowing the generation of real arrays: |
|
|
|
|
|
TABLE::
|
|
|
Generate an array of expressions:
|
|
|
+
|
|
|
+
|
|
|
....
|
|
|
TABLE(n2,expression) // implies
|
|
|
// TABLE(1:n2:1,expression)
|
... | ... | @@ -951,21 +951,21 @@ TABLE(n1:n2,expression) // implies |
|
|
// TABLE(n1:n2:1,expression)
|
|
|
TABLE(n1:n2:n3,expression)
|
|
|
....
|
|
|
+
|
|
|
These expressions all generate an array with `n2` components. The
|
|
|
components selected by `n1:n2:n3` are filled from the given
|
|
|
`expression`; a C pseudo-code for filling is
|
|
|
+
|
|
|
+
|
|
|
These expressions all generate an array with `n2` components. The
|
|
|
components selected by `n1:n2:n3` are filled from the given
|
|
|
`expression`; a C pseudo-code for filling is
|
|
|
+
|
|
|
....
|
|
|
int i;
|
|
|
for (i = n1; i <= n2; i += n3) a[i] = expression(i);
|
|
|
....
|
|
|
+
|
|
|
In each generated expression the special character hash sign (`#`) is
|
|
|
replaced by the current value of the index `i`.
|
|
|
+
|
|
|
Example:
|
|
|
+
|
|
|
+
|
|
|
In each generated expression the special character hash sign (`#`) is
|
|
|
replaced by the current value of the index `i`.
|
|
|
+
|
|
|
Example:
|
|
|
+
|
|
|
....
|
|
|
// an array with 9 components, evaluates to
|
|
|
// {1,4,7,10,13}:
|
... | ... | @@ -974,25 +974,25 @@ table(5:9:2,3*#+1) // equivalent to |
|
|
....
|
|
|
ROW::
|
|
|
Generate a table row:
|
|
|
+
|
|
|
+
|
|
|
....
|
|
|
ROW(table,place) // implies all columns
|
|
|
ROW(table,place,column list)
|
|
|
....
|
|
|
|
|
|
This generates an array containing the named (or all) columns in the
|
|
|
selected place.
|
|
|
+
|
|
|
This generates an array containing the named (or all) columns in the
|
|
|
selected place.
|
|
|
|
|
|
COLUMN::
|
|
|
Generate a table column:
|
|
|
+
|
|
|
+
|
|
|
....
|
|
|
COLUMN(table,column) // implies all rows
|
|
|
COLUMN(table,column,range)
|
|
|
....
|
|
|
+
|
|
|
This generates an array containing the selected (or all) rows of the
|
|
|
named column.
|
|
|
+
|
|
|
This generates an array containing the selected (or all) rows of the
|
|
|
named column.
|
|
|
|
|
|
[[sec:strarray]]
|
|
|
String Arrays
|
... | ... | |