sin_rad

Description

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

Return type

float64

Domain

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

Categories

Usage

sin_rad(angle)

Argument

Type

Optional

Repeatable

Restrictions

angle

float64

no

no

none

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

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.