mathLib.sin

The system function mathLib.sin that returns the sine of a number. The result is in the range of -1 to 1.


mathLib.sin syntax diagram

result

Any numeric or HEX item, as described in Mathematical (system words). The value returned by the mathLib.sin function is converted to the format of result and returned in result.

numericItem

Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before result is calculated.

Example

  result = mathLib.sin(myItem);

Related reference
Mathematical (system words)