7 formula calculator functions – Innovate Motorsports LogWorks 3 User Manual
Page 120

LogWorks3_Manual_1.01.doc
- 120 -
10.7 Formula Calculator Functions
Rules:
•
If a function uses multiple arguments, like floor(x;10), the arguments are separated by
semicolons.
The Formula Calculator has the following built-in functions, operators, constants and values
Pre-assigned constants and values
e
2.71828182846
pi
3.14159265359
t
time in seconds from begin of session
Math Operators
+
Addition
-
Subtraction
*
Multiplication
/
Division
^
Power of, as in x^2 would square x
Boolean Operators
Boolean operations result in just one of 2 possible results: 1 or 0, equivalent to true or false.
The following Boolean operators are built into the Math Calculator:
&
AND, as in a & b. Result is 1 if both, a and b, are 1.
|
OR, as in a | b. Result is 1 if either a or b are 1.
!
NOT as in !a. Result is 0 if a is not 0. Result is 1 of a is 0.
==
EQUAL as in a == b. Result is 1 if a is equal to b. Otherwise result is 0.
!=
UNEQUAL as in a != b. Result is 0 if a is equal to b. Otherwise result is 1.
>
GREATER THAN as in a > b. Result is 1 if a is bigger than b.
<
SMALLER THAN as in a < b. Result is 1 if a is smaller than b.
>=
GREATER OR EQUAL as in a >= b. Result is 1 if a is bigger or equal to b.
<=
SMALLER OR EQUAL as in a <= b. Result is 1 if a is smaller or equal to b.
Regular Math Functions
abs
Calculates absolute value ( -x turns into x)
acos
Calculates arc-cosine as in acos(x)
asin
Calculates arc-sine as in asin(x)
atan
Calculates arc-tan as in atan(x)
avrg
Calculates the average of multiple values as in avrg(a;b;c;d)
ceil
Limits value to a maximum as in ceil(x; 10) would limit x to a maximum of 10
cos
Calculates cosine as in cos(x)
cosh
Calculates hyperbolic cosine as in cosh(x)
fact
Calculates the factorial of x as in fact(x) calculated as x*(x-1)*(x-2)*...(x-x+1)
floor
Limits value to a minimum as in floor(x; 2) would limit x to a minimum of 2
max
Returns the largest of a set of variables as in max(a;b;c;d)