Parameters, Value
Sine function calculates the sine value of the radian, the input is the value of radian, and the output is [-1,1]
.
- Format: sin(
<radian>
) - Parameters: see table below
- Value: ATTR (number), and it should be >= -1 and <= 1
Name | Category | Specification | Description |
---|---|---|---|
radian | ATTR(number) | / | the value of radian to be calculated |
Common Usage
Example: calculate the sine value of the radian 30°
return sin(30 * pi() / 180)
Example: calculate the sine values of a column of radians
uncollect [1, 2.5, 3] as a
return sin(a)