Cos
cos
returns the value of the cosine of an angle expressed in degrees, radians, or grades, depending on adxmda. The type of result is Double.
Syntax
cos(value)
Example
# This function converts polar coordinates to cartesian coordinates
Func CONVERT_TO_CARTESIAN(ANGLE_VALUE,DISTANCE_VALUE, X,Y)
Value Double ANGLE_VALUE,DISTANCE
Variable Double X,Y
X=DISTANCE_VALUE*cos(ANGLE_VALUE)
Y=DISTANCE_VALUE*sin(ANGLE_VALUE)
End
See also
sin, tan, asin, acos, atan, atan2.