Parameters, Value
Arccosine function calculates the radians of the cosine value, the input is [-1, 1]
, and the output is [0, PI]
.
- Format:
- Parameters: see table below
- Value: ATTR ( number ), and it should be >= 0 and <= PI
Name | Category | Specification | Description |
---|---|---|---|
radian | ATTR(number) | / | The cosine value to be calculated |
Common Usage
Example: calculate the radian of the cosine value 0.5
return acos(0.5) * 180 / pi()
Example: calculate the radians of a column of cosine values
uncollect [1, -0.5, 0] as a
return acos(a)