5 arithmetical functions, 1 exponential function, Exponential function – Metrohm viva 1.0 Manual User Manual
Page 59

■■■■■■■■■■■■■■■■■■■■■■
2 General program functions
viva 1.0
■■■■■■■■
47
Oper-
and1
Oper-
and2
Result
Example
Remark
Number
Text
Number
1.2 <> "1.2" --> 01.2 <>
"Metrohm" --> 1
Before the relational operation, the Num-
ber is converted to Text, afterwards the
texts are compared according to ASCII
value (see Chapter 2.3.4.10, page 65).
Text
Number
Number
"Metrohm" <> 1.2 --> 1
The same rules apply here as for the previ-
ous operation.
Number
Time
Number
2.0 <> Time(1999;10;07) -->
1
Before the comparison, the operand is con-
verted from Date/Time to a Number.
Time
Number
Number
Time(1999;10;07) <> 2.5 -->
1
The same rules apply here as for the previ-
ous operation.
Text
Time
Number
"Metrohm" <>
Time(1999;10;07) --> 1
Before the operation, the operand is con-
verted from Date/Time to Text (in this
example: "1999-10-07 00:00:00 UTC
+2"), afterwards the texts are compared
according to ASCII value (see Chapter
2.3.4.10, page 65).
Time
Text
Number
Time(1999;10;7) <>
"Metrohm" --> 1
The same rules apply here as for the previ-
ous operation.
2.3.4.5
Arithmetical functions
2.3.4.5.1
Exponential function
Dialog window: Formula editor
▶ Operators/Functions
Syntax
y = Exp(number)
Calculates e ^ number. Other notation for y = e
(number)
, where e is the Euler
number (e = 2.71828…).
Parameters
Number
Exponent
The parameter can be indicated either directly as a number or as a variable
of the Number type. If the parameter does not correspond to the
expected type, it will automatically be converted to it. If this is not possi-
ble, the result of this operation is returned as invalid.
Examples
Exp(1.5) = 4.48169
Exp('CV.AverageTemp') = Power of the exponent (common variable
CV.AverageTemp) for base e