Function sin()
calculates the sine value of a radian.
Arguments:
- Radian <number>
Returns:
- Sine <number>, ∈ [-1, 1]
Common Usage
Example: Calculate the sine value of degree 30°
return sin(30 * pi() / 180)
0.5
Example: Calculate the sine value of each row (radian) of an alias
uncollect [1, 2.5, 3] as a
return sin(a)
0.841470984807897
0.598472144103957
0.141120008059867