# Description

The sin command is used to calculate the sine for any input angle. The input units are in degrees.

Picture the unit circle (a circle of radius 1.0 centered about the origin). If you were to imagine a unit vector rotating inside of the unit circle, the angle (in degrees) that the unit vector makes with the positive x-axis is the input argument theta. The y-coordinate of the endpoint of the unit vector is the return value of the sin function.

## Functional area

Math

# Command syntax

## Syntax

`sin value` |

### Arguments

Name | Type | Required | Comments |
---|---|---|---|

`value` | float | yes | Float value of an angle in degrees. |

### Flags

None

## Return value

float

Returns a floating point value in the range [-1.0, 1.0]

## Examples

float $temp = (sin (30));

// declares a variable for the sine function

print (string ($temp));

// prints the output of the sine function