Download KD7 RECORDER USER`S MANUAL

Transcript
Mathematical and logic functions:
Function
Description
round(x)
Returns the value x rounded to the nearest integer
sin(x)
Sine of number x
asin(x)
Arc sine of number x
sinh(x)
Hyperbolic sine of number x
cos(x)
Cosine of number x
acos(x)
Arc cosine of number x
cosh(x)
Hyperbolic cosine of number x
tan(x)
Tangent of number x
atan(x)
Arc tangent of number x (in radians)
tanh(x)
Hyperbolic tangent of number x
sqrt(x)
Square root of number x
min(v1,v2,v3,...)
Minimal value from numbers v1,v2,v3...
max(v1,v2,v3,...)
Maximal value from numbers v1,v2,v3...
abs(x)
Absolute value
rand()
Return random number between 0 and 1
rand(min, max)
Return random number between min and max
ceil(x)
Returns the smallest integer higher or equal x
floor(x)
Returns the highest integer smaller or equal x
log(x)
Natural logarithm from the number x
log10(x)
Decimal logarithm from the number x
avg(v1,v2,v3,...)
Mean value of numbers v1,v2,v3...
sum(v1,v2,v3,...)
Sum of numbers v1,v2,v3...
if(warunek, v1, v2)
Conditional expression. If the condition is true, the function returns V1,
in the contrary it returns v2.
isNan(x)
Returns 1 when x has an indefinite value ( NaN)
isFinite(x)
Returns 1 when x has an infinite value and is not NaN
hex(hexNumber)
Conversion of a hexadecimal number into a decimal number, e.g. (F0)
returns the value 240
bin(binNumber)
Conversion of a logic number into a decimal number, e.g. bin(0100)
returns the value 4
isErr(value)
Returns 1 if the value is erroneous (e.g. measuring error)
date(year, month, day)
Returns the date_time value corresponding to the given date
time(hour, minute, sekond)
Returns the date_time value corresponding to the given time
day(date_time)
Returns the day of the month corresponding to the given date_time
hour(date_time)
Returns the hour corresponding to the given date_time
minute(date_time)
Returns the minute corresponding to the given date_time
second(date_time)
Returns the second corresponding to the given date_time
year(date_time)
Returns the year corresponding to the given date_time
month(date_time)
Returns the month corresponding to the given date_time
weekday(date_time)
Returns the day of the week corresponding to the given date_time
nowdate()
Returns the date_time value corresponding to the current date
nowtime()
Returns the date_time value corresponding to the current time.
status(value)
Returns status value given as parametr (correct values, sensor break,
range exceeding…)
47