System Functions

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.

Note:
The value to be supplied must be in Radians, not Degrees. To convert Degrees to Radians:

   Radians = Degrees * pi / 180
   Degrees = Radians * 180 / pi

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