tan
mathCalculates the tangent of an angle in radians
Syntax
tan(number) Parameters
number (number) The angle in radians
Returns
number The tangent of the angle
Examples
Input:
pi / 4 | tan Output:
1 Input:
tan(0) Output:
0 Input:
pi / 6 | tan Output:
0.577... The tan() function calculates the tangent of an angle provided in radians.
Usage
Use tan() for trigonometric calculations, slope computations, or geometric transformations. Remember that input must be in radians.