cos_rad
cos_rad(angle: float64) -> float64
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
Domain
This is a scalar function (calculates a single output value for a single input row).
Categories
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.
Updated 8 days ago