Functions
|
Definition
|
---|---|
sin(x), cos(x), tan(x)
|
standard trigonometric functions
|
asin(x)
|
arc sine in range –90 to 90
|
acos(x)
|
arc cosine in range 0 to 180
|
log(x)
|
base 10 logarithm
|
ln(x)
|
natural (base e) logarithm
|
abs(x)
|
absolute value. If x>0, the function returns x, otherwise it returns –x.
|
sqrt(x)
|
square root
|
ceil(x)1
|
round toward positive infinity
|
floor(x)1
|
round toward negative infinity
|
The functions ceil(x) and floor(x) are not available for servo motors.
|