Evaluates a mathematical expression
"Bad"
is
reported if there was an error during the calculation, such as a divide by zero. "-2.5∗LOG10(PA)"
.
In this expression constants may either be given literally or represented by the variables PA, PB, …PZ.
The expression may contain sub-expressions represented by the variables FA, FB, …FZ. Values for
those sub-expressions and constants which appear in the expression will be requested via the
application’s parameter of the same name.
FORTRAN 77 syntax is used for specifying the expression, which may contain the usual intrinsic functions, plus a few extra ones. An appendix in SUN/61 gives a full description of the syntax used and an up-to-date list of the functions available. The arithmetic operators (+,-,/,∗,∗∗) follow the normal order of precedence. Using matching (nested) parentheses will explicitly define the order of expression evaluation. The expression may be up to 132 characters long.
PA∗ASIND(FA/PA)∗X/FA
SQRT(X∗x + y ∗ Y)
10.1
where the parameter name is to the left of > and its value is to the right of the >.
SQRT(PX∗PX+PY∗PY)∗EXP(PX-PY)
2.345
-0.987
where the parameter name is to the left of > and its value is to the right of the >.
"_REAL"
for single precision, "_DOUBLE"
for double precision,
or "_INTEGER"
for integer precision. Elastic precisions are used, such that a higher precision will be
used if the input data warrant it. So for example if PREC="_REAL"
, but double-precision data were to
be transformed, double-precision arithmetic would actually be used. The result is reported using the
chosen precision. ["_REAL"]
"(mod($count,3)+1)/2)"
where $count
is the value of the shell variable count. The calculation is performed
in integer arithmetic, thus if count equals 2, the result is 1 not 1.5. x
−1)))∗log(abs($x
−1))
where $x
is the value of the shell variable x. "(mod((count),3)+1)/2)"
where (count)
is the value of the ICLvariable count. The calculation is performed
in integer arithmetic, thus if count equals 2, the result is 1 not 1.5. (x)
is the value of the ICL variable x.