Compiler Library/XL Reference Manual (32650-90029)

2- 19
BY ZERO occurs.
DSIGN (or DSIGN')
DSIGN calculates the absolute value of the first longreal number and
gives the number the sign of the second longreal number.
Declaration
FUNCTION DSIGN(x,y:LONGREAL):LONGREAL; EXTERNAL;
Attributes
Parameters: Both arguments are longreal numbers; if the
second number is zero, the sign is assumed to
be positive.
Result: A longreal number.
HP FORTRAN 77/XL: Intrinsic function: Z=DSIGN(X,Y).
Error: If either of the arguments is a NaN, there are
two possible actions. If the INVALID trap is
enabled, the message "SIGN FUNCTION: ANY
ARGUMENT=NaN" occurs. Otherwise, the INVALID
flag is set. In either case, a quiet NaN is
returned.
DSIN (or DSIN')
DSIN calculates the sine of a longreal number in radians.
Declaration
FUNCTION DSIN(VAR x:LONGREAL):LONGREAL; EXTERNAL;
Accuracy
Attributes
Parameter: A longreal number in radians.
Result: A representable longreal number in the range
[-1.0, 1.0]. See Chapter 1 for details on the
internal representation of longreal numbers.
HP FORTRAN 77/XL: Intrinsic function: Y=DSIN(X).
Error: If the argument is a NaN or an Infinity, there
are two cases. If the INVALID trap is enabled,
the message "DSIN(X): X=NaN OR INFINITY"
occurs. Otherwise, the INVALID flag is set.
In either case, a quiet NaN is returned.
When ABS (X) > 2.6378256 x 107 , DSIN (X)
completely loses significance. See Appendix A
for more details.
DSINH (or DSINH')
DSINH calculates the hyperbolic sine of a longreal number.