List of all mathematical/trigonometric functions/instructions available in R3 programming language.
Legend: R = allowed use in Rules - T = allowed use in Tasks - I = Instruction - F = Function (thus has a return value) |
||||
---|---|---|---|---|
Keyword |
R |
T |
F/I |
Description |
abs() |
R |
T |
F |
Absolute value of a quantity |
abs_mod() |
R |
T |
F |
Remainder of division |
acos() |
R |
T |
F |
Arco cosine |
asin() |
R |
T |
F |
Arco sine |
atan() |
R |
T |
F |
Arco tangent |
atan2() |
R |
T |
F |
Arco tangent |
cos() |
R |
T |
F |
Cosine |
fract() |
R |
T |
F |
Returns the fractional part of the argument |
log() |
R |
T |
F |
Returns the natural logarithm of the argument |
log10() |
R |
T |
F |
Returns the base10 logarithm of the argument |
mod() |
R |
T |
F |
Returns the remainder of the division between numeric variables |
pow() |
R |
T |
F |
Exponentiation |
rand32() |
R |
T |
F |
Returns a random number (i32) |
random() |
R |
T |
F |
Returns a random number (i16) |
R |
T |
F |
Returns a random number (real) |
|
range() |
R |
T |
F |
Check if the variable is in the range |
R |
T |
F |
Scaling of a variable |
|
round() |
R |
T |
F |
Returns the nearest integer |
sign() |
R |
T |
F |
Returns the sign of the variable |
sin() |
R |
T |
F |
Sine |
sqrt() |
R |
T |
F |
Square root |
tan() |
R |
T |
F |
Tangent |
trunc() |
R |
T |
F |
Returns the integer part of the argument |