-
Notifications
You must be signed in to change notification settings - Fork 6
Calculate
This node type allows you to evaluate a math formula. Following elements are accepted in a math formula.
Constants: pi
Variables: a
, b
, c
, d
, e
, f
, g
, h
, i
, j
, k
, l
Operators: +
, -
, *
, /
, %
, <
, <=
, =
, !=
, >=
, >
Functions: min
, max
, round
, ceil
, floor
, deg
, asinh
, asin
, sin
, acosh
, cos
, atanh
, atan
, tan
, exp
, log2
, log10
, sqrt
, cbrt
, rand
, if
, case
Here are some correct math formulas:
floor(a)
(a + b) / rand(c, d)
if(a > b, c, d)
a * max(b, c, d, e)
case a when (b) then c when (d) then e else f end
Functions expecting an angle, such as sin
or cos
, work with radians. If you want to work with degrees instead, you can use deg
function
to convert beforehand the degrees to radians. Following math formula will give you the cosinus of an angle of 36 degrees:
cos(deg(36))