Mathematical functions and constants
Note that a lot of the math functions have a precision that's implementation-dependent.
- Source:
- See:
-
- Math
Members
(static, constant) acos
Returns the arcosine (in radians) of a number
- Source:
(static, constant) asin
Returns the arcsine (in radians) of a number
- Source:
(static, constant) atan
Returns the arctangent (in radians) of a number
- Source:
(static, constant) ceil
Returns the smallest integer greater than or equal to a given number
- Source:
- See:
-
- Math.ceil
(static, constant) cos
Returns the cosine of the input (interpreted as radians)
- Source:
(static, constant) floor
Returns the largest integer less than or equal to a given number
- Source:
- See:
-
- Math.floor
(static, constant) sin
Returns the sine of the input (interpreted as radians)
- Source:
(static, constant) tan
Returns the tangent of the input (interpreted as radians)
- Source:
Methods
(static) abs()
Get absolute value of a signal
- Source:
(static) add()
Add signals
- Source:
(static) div()
Subtract signals
- Source:
(static) mod()
Subtract signals
- Source:
(static) mul()
Subtract signals
- Source:
(static) pow()
Subtract signals
- Source:
(static) round()
Rounds the signal to a number of decimals
- Source:
(static) sub()
Subtract signals
- Source: