Parameters, Value
Cosine function calculates the cosine value of the radian, the input is the value of radian, and the output is [-1,1]
.
Syntax:
- Format: cos(
<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: caculate the cosine value of the radian 60°
return cos(60 * pi() / 180)
Example: calculate the cosine values of the radian of a column
uncollect [1, 2.5, 3] as a
return cos(a)