sin_rad
sin_rad(angle: float64) -> float64
Computes the sine 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 sin:sin_rad(angle)
Create a column 'sin' with the result of the sine of column 'angle' The resulting column will be in radians.
Given the below column angle, sin_rad produces the below column sin
| angle | sin |
|---|---|
| 0 | 0 |
| π / 4 | √2/2 |
| π / 3 | √3/2 |
| π / 2 | 1 |
| π | 0 |
| 3π / 2 | -1 |
| 2π | 0 |
make_col sin_pi:sin_rad(pi())
Create a column 'sin_pi' with the result of the sine of pi. sin_pi will be 0.
Updated 8 days ago