Skip to main content

TAN( ) Return Tangent

Format

TAN(num[,ERR=stmtref])

Where:

num

Numeric expression whose Tangent will be returned.

stmtref

Program line number or statement label to which to transfer control.

Returns

Numeric, rounded, Tangent of given number.

Description

The TAN( ) function returns the Tangent of a given numeric expression. The numeric value returned will be rounded to the current PRECISION in effect. The inverse function is ATN( ) Return Arc-Tangent.

Example

floating point
print tan(1)
.15574077246549E+01
print tan(-3.14159/2)
-.75369599539306E+06