Trigonometry & Functions
Perform advanced mathematical functions on numbers.
Trig/Func Block
Operations
- Square Root (sqrt)
- Absolute Value (abs): Returns the non-negative value.
- -: Negates the number (e.g., 5 to -5).
- ln: Natural logarithm.
- log10: Logarithm base 10.
- e^: Exponential function.
- 10^: Power of 10.
- sin, cos, tan: Standard trigonometric functions (in degrees).
- asin, acos, atan: Inverse trigonometric functions.
Usage Note
Trigonometric functions in Blockly typically expect or return degrees.