Math¶
Blocks for mathematical operations:
- Arithmetic — +, −, ×, ÷, power
- Number — literal
- Change value range (value mapping)
- Unitary Functions — Absolute Value, Root, Logarithm, Exponent
- Trigonometry — sin, cos, tan, asin, acos, atan
- Mathematical Constants
- Number properties — even, odd, prime, integer, positive, negative, divisible by a number
- Rounding — Down, Up, Round
- Round to decimal places
- Remainder after division — modulo
- Limit value to interval
- Random Integer in Range
- Convert to integer (int)
Practical principles¶
- Watch out for division by zero.
- Use the
constrain valueblock to work with sensor limits. - For periodic phenomena, use
remainder.