Parameters, Value
Tangent function calculates the tangent value of the radian, the input is the value of radian, and the output is (-∞, +∞)
.
- Format: tan(
<radian>
) - Parameters: see table below
- Value: ATTR (number), and it should be >= -1 and <= 1
Name | Category | Specification | Description |
---|---|---|---|
radian | ATTR(number) | / | the value of radian to be calculated |
Common Usage
Example: calculate the tangent value of the radian 45°
return tan(45 * pi() / 180)
Example: calculate the tangent values of a column of radians
uncollect [1, 2.5, 3] as a
return tan(a)