Compiler Library/XL Reference Manual (32650-90029)

2- 8
Attributes
Parameter: A real number in radians.
Result: A representable real number in the range [-1.0,
1.0]. See Chapter 1 for details on the
internal representation of real numbers.
HP FORTRAN 77/XL: Intrinsic function: Y=COS(X).
Error: If the argument is a NaN or an Infinity, there
are two cases. If the INVALID trap is enabled,
the message "COS(X): X=NaN OR INFINITY" occurs.
Otherwise, the INVALID flag is set. In either
case, a quiet NaN is returned.
COSH (or COSH')
COSH calculates the hyperbolic cosine of a real number.
Declaration
FUNCTION COSH(VAR x:REAL):REAL; EXTERNAL;
Accuracy
.
Attributes
Parameter: A real number.
Result: A real number.
HP FORTRAN 77/XL: Intrinsic function: Y=COSH(X).
Error: If the argument is a NaN, there are two
possible actions. If the INVALID trap is
enabled, the message "COSH(X): X=NaN" occurs.
Otherwise, the INVALID flag is set. In either
case, a quiet NaN is returned.
If ABS(X) is >= 88.7196, the result cannot be
represented and the message "COSH(X) OVERFLOW"
occurs. See Appendix A for more details.
CSIN (or CSIN')
CSIN calculates the sine of a complex number.
Declaration
Complex numbers in HP FORTRAN 77/XL programs are represented as an
ordered pair of real numbers: one for the real part
a
and one for the
imaginary part
b
. Thus, complex numbers occupy eight bytes.
TYPE complex=RECORD
realpart:REAL;
imagpart:REAL;
END;
FUNCTION CSIN(VAR x:complex):complex; EXTERNAL;