cos_rad(angle: float64) -> float64

Computes the cosine 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

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

anglecos
01
π / 4√2/2
π / 31/2
π / 20
π-1
3π / 20
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.