arccos_rad¶
Description¶
Computes the arc cosine of the input. The result is a float64, specified in radians, in the range [0, $\pi$]
Arguments
input (required) Ratio to find the arc cosine of, float64. Must be between [-1, 1], otherwise the function returns null.
Return type¶
float64
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
arccos_rad(input)
Argument |
Type |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
input |
float64 |
no |
no |
none |
Examples¶
make_col arccos:arccos_rad(ratio)
Create a column ‘arccos’ with the result of the arc cosine of column ‘ratio’
The resulting column will be in radians.
Given the below column ratio
, arccos_rad
produces the below column arccos
.
Ratio should be a floating point number and in the range [-1, 1]. Any inputs outside this range have the result null.
ratio |
arccos |
---|---|
-5 |
null |
-1 |
π |
0 |
π / 2 |
1/2 |
π / 3 |
1 |
0 |
2 |
null |