Sin

Sin returns the value of the sine of an angle expressed in degrees, radians, or grades, depending on adxmda. The type of the result is Double.

Syntax

sin(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_VALUE
Variable Double X,Y
  X=DISTANCE_VALUE*cos(ANGLE_VALUE)
  Y=DISTANCE_VALUE*sin(ANGLE_VALUE)
End

See also

cos, tan, asin, acos, atan, atan2.