TAN( ) function
Syntax
TAN(radians)
Parameters
Name | Type | Description |
---|---|---|
radians | numeric |
The measurement of the angle in radians. |
Output
Numeric.
Examples
Basic examples
Returns 0.999999999999999 (the tangent of the specified number of radians, equivalent to 45 degrees):
TAN(0.785398163397448)
Returns 0.999999999999999 (the tangent of 45 degrees):
TAN(45 * PI( )/180)
Advanced examples
Using degrees as input
Returns 1.000 (the tangent of 45 degrees, rounded to 3 decimal places):
DEC(TAN(45 * PI( )/180),3)
Remarks
Performing the Mantissa Arc Test
The three trigonometric functions in Analytics – SIN( ), COS( ), and TAN( ) – support performing the Mantissa Arc Test associated with Benford's Law.
Converting degrees to radians
If your input is in degrees you can use the PI( ) function to convert the input to radians: (degrees * PI( )/180) = radians. If required, you can round or truncate the return value using the DEC( ) function.