sin_rad(angle: float64) -> float64

Computes the sine of the input and returns a float64. The input should be expressed in radians.

Arguments

  1. 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

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

anglesin
00
π / 4√2/2
π / 3√3/2
π / 21
π0
3π / 2-1
0

Create a column 'sin_pi' with the result of the sine of pi. sin_pi will be 0.