cos_deg(angle: float64) -> float64

Computes the cosine of the input and returns a float64. The input should be expressed in degrees.

Arguments

  1. angle (required) Angle in degrees, a float64

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col cos:cos_deg(angle)

Create a column 'cos' with the result of the cosine of column 'angle'
The resulting column will be in degrees.

Given the below column angle, cos_deg produces the below column cos

anglecos
01
45√2/2
601/2
900
180-1
2700
3601