Error getting tags :
error 404Error getting tags :
error 404 tan | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
tan
Basics
Expander triangle
Type
Function
Syntax
the tan of angleInRadians tan(angleInRadians)
See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the tangent of an angle (in radians).
Examples

tan(pi) -- returns zero
the tan of myAngle

Additional Comments
Expander triangle

Use the tan function to find the tangent of an angle.

Parameters:

The angle is a positive or negative number, or an expression that evaluates to a number.

Value:

The tan function returns a number.

Comments:

The tan function repeats every 2*pi radians: tan(x) = tan(x + 2 * pi), for any value of x.

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 cosInDegrees

User Comments
Expander triangle