Compiler Library/XL Reference Manual (32650-90029)

2- 27
Attributes
Parameter: A non-negative real number.
Result: A non-negative real number.
HP FORTRAN 77/XL: Intrinsic function: Y=SQRT(X).
Error: If the argument is a NaN or if it is negative,
there are two possible actions. If the INVALID
trap is enabled, the message "SQRT(X): X<0.0 OR
X=NaN" occurs. Otherwise, the INVALID flag is
set. In either case, a quiet NaN is returned.
TAN (or TAN')
TAN calculates the tangent of a real number in radians.
Declaration
FUNCTION TAN(VAR x:REAL):REAL; EXTERNAL;
Accuracy
Attributes
Parameter: A real number in radians.
Result: A real number.
HP FORTRAN 77/XL: Intrinsic function: Y=TAN(X)
Error: If the argument is a NaN, there are two
possible actions. If the INVALID trap is
enabled, the message "TAN(X): X=NaN" occurs.
Otherwise, the INVALID flag is set. In either
case, a quiet NaN is returned.
When ABS(X) > 6433.0, TAN(X) completely loses
significance. See Appendix A for more details.
TANH (or TANH')
TANH calculates the hyperbolic tangent of a real number.
Declaration
FUNCTION TANH(VAR x:REAL):REAL; EXTERNAL;
When x-y ~ , maximum f-g ~ sec
2
x