Tan
The function Tan calculates the tangent of an angle.
Function | Group | Execution | Windows | Embedded | Thin Client | Mobile Access |
---|---|---|---|---|---|---|
Tan | Trigonometric | Synchronous | Supported | Supported | Supported | Supported |
Syntax
Tan(numAngle)

- numAngle
- The angle in radians.
Tip: 2π radians is the same as 360 degrees.
Returned value
This function returns the tangent of the specified angle.
The function cannot return the actual tangent of π/2 (i.e., Tan(Pi()/2) or equivalent), because that is infinite. Instead, the function returns the largest number possible, given the limited precision of the value returned by the function Pi.
Examples
Calculate the tangent of 1 radian:
Tan(1)
Calculate the tangent of π radians:
Tan(Pi())
Calculate the tangent of the value of the project tag MyAngle:
Tan(MyAngle)