Section 7. Creating and Editing Datalogger Programs
TABLE 7-5. Operators and Functions
Operators
* multiply
/ divide
+ add
– subtract
^ raise to the power of; enclose negative values in parentheses
@ modulo divide
E scientific notation; 6e–1=0.6
Functions
COS cosine; angle in degrees
SIN sine; angle in degrees
TAN tangent; angle in degrees
COTAN cotangent; angle in degrees
ARCTAN arctangent; angle in degrees
ARCSIN arcsine; angle in degrees
ARCCOS arccosine; angle in degrees
ARCCOT arccotangent; angle in degrees
SQRT square root
LN natural logarithm
EXP exponent of e; EXP(2) = e
2
RCP reciprocal; RCP(4) = 1/4 = 0.25
ABS absolute value
FRAC takes the fraction portion; FRAC(2.78)=.78
INT takes the integer portion; INT(2.78)=2
Below are examples of valid expressions:
Zee = Vee+Ex
es = tee^(–2)
Root = SQRT(ABS(data))
avg = (data1+data2+data3+data4+data5)/5
length = SQRT((adj^2)+(opp^2))
TempF = (TempC*1.8)+32
The following section of an Edlog program uses an expression to convert
temperature from Celsius to Fahrenheit:
7-59