FORTRAN Reference Manual

Intrinsic Functions
FORTRAN Reference Manual528615-001
8-30
TAN Function
TAN Function
The TAN function returns the tangent of an angle expressed in radians.
The table below shows the argument and function type for the TAN generic function
and its associated specific function.
Considerations
The result type of the TAN function is the same as the type of its argument.
The value of TAN (x) is defined as:
SIN (x)/COS (x)
and is undefined for values of x for which COS (x) = 0.
Example of the TAN Function
x = TAN (y)
TANH Function
The TANH function returns a hyperbolic tangent.
The table below shows the argument and function type for the TANH generic function
and its associated specific function.
Considerations
The result type of the TANH function is the same as the type of its argument.
The value of TANH (x) is defined as
SINH (x)/COSH (x)
Syntax Argument Type Function Type
TAN (x)
TAN (x) Real Real
DTAN (x) Double Precision Double Precision
x is an arithmetic expression.
Syntax Argument Type Function Type
TANH (x)
TANH (x)Real Real
DTANH (x) Double Precision Double Precision
x is an arithmetic expression.