Confirm test fire — OP1
Type the 5-digit code below to continue. This protects against accidental output activation.
Define up to two custom math expressions. They're evaluated
live into dataset1, dataset2 (and dataset3),
which you can then reference from any rule's conditions. Useful for
derived quantities (kinetic energy, lateral acceleration magnitude,
Mach number, anything else you can compute from the live sensor data).
Operators & syntax
+ − * / % ^ — arithmetic. Power
(^) is right-associative.
Use (parens) to group.
Integer literals get a .0 appended automatically
on save, so 1/2 always means floating-point
0.5, never integer 0.
Functions
sqrt abs ceil floor exp log log10 sin cos tan asin
acos atan sinh cosh tanh (1 arg);
pow atan2 fmod min max (2 args);
if(cond, then, else) — conditional, picks
then when cond > 0.
Constants
pi, e.
Safety
Divide-by-zero and similar faults return 0 instead of NaN. Results are clamped to ±109. A parse error stops the affected dataset from evaluating — rules referencing it see 0 until you fix the expression.