# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
the tan of angleInRadians
# Params
- angleInRadians : A positive or negative number, or an expression that evaluates to a number.
# Examples
put tan(pi/4) -- returns 1
put the tan of tMyAngle
# Description
If the angleInRadians is an odd multiple of pi/2, the tangent is infinite (undefined). The tan function instead returns a very large number for such angles, due to internal number handling.
The tan function requires its input to be in radians. To provide an angle in degrees, use the following custom function:
function tanInDegrees angleInDegrees return tan(angleInDegrees * pi / 180) end tanInDegrees
# Tags
math,
# See