cos_rad¶
Description¶
Computes the cosine of the input and returns a float64. The input should be expressed in radians.
Arguments
angle (required) Angle in radians, a float64
Return type¶
float64
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
cos_rad(angle)
Argument |
Type |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
angle |
float64 |
no |
no |
none |
Examples¶
make_col cos:cos_rad(angle)
Create a column ‘cos’ with the result of the cosine of column ‘angle’
The resulting column will be in radians.
Given the below column angle
, cos_rad
produces the below column cos
angle |
cos |
---|---|
0 |
1 |
π / 4 |
√2/2 |
π / 3 |
1/2 |
π / 2 |
0 |
π |
-1 |
3π / 2 |
0 |
2π |
1 |
make_col cos_pi:cos_rad(pi())
Create a column ‘cos_pi’ with the result of the cosine of pi. cos_pi will be -1.