tan_rad¶
Description¶
Computes the tangent of the input and returns a float64. The input should be expressed in radians.
Arguments
- 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¶
tan_rad(angle)
| Argument | Type | Optional | Repeatable | Restrictions | 
|---|---|---|---|---|
| angle | float64 | no | no | none | 
Examples¶
make_col tan:tan_rad(angle)
Create a column ‘tan’ with the result of the tangent of column ‘angle’
The resulting column will be in radians.
Given the below column angle, tan_rad produces the below column tan
| angle | tan | 
|---|---|
| 0 | 0 | 
| π / 6 | √3/3 | 
| π / 4 | 1 | 
| π / 3 | √3 | 
| π | 0 | 
| 2π | 0 | 
make_col tan_pi:tan_rad(pi())
Create a column ‘tan_pi’ with the result of the tangent of pi. tan_pi will be 0.