Expressions
Expressions are built from floats, variables, operators, and functions. They evaluate to a Float.
Operators
+: addition-: subtraction*: multiplication/: division(): parentheses for order of operations==: equal; result 1 if true, 0 otherwise!=: not equal; 1 if true, 0 otherwise>,<,>=,<=: comparison; 1 if true, 0 otherwise
Functions
sin(x),cos(x),tan(x): trig (radians)abs(x): absolute valueexp(x): exponentialatan2(x): arctangentln(x): natural logsig(x): sign; 1 for +0 or positive, -1 for -0 or negativestep(x, y): step; 1 if x < y, else 0floor(x),ceil(x),round(x): roundingmax(x, y...),min(x, y...): max/minclamp(x, min, max): clamp x to [min, max]
Trig and inverse trig use radians.