cos_deg

Description

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

Return type

float64

Domain

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

Categories

Usage

cos_deg(angle)

Argument

Type

Optional

Repeatable

Restrictions

angle

float64

no

no

none

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

angle

cos

0

1

45

√2/2

60

1/2

90

0

180

-1

270

0

360

1