Compiler Library/XL Reference Manual (32650-90029)
2- 9
Accuracy
Depends on the accuracy of SIN, COS, and EXP.
Attributes
Parameter: A complex number.
Result: A complex number.
HP FORTRAN 77/XL: Intrinsic function: Y=CSIN(X).
Error: See the SIN, COS, and EXP error descriptions.
CSINH (or CSINH')
CSINH calculates the hyperbolic 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 CSINH(VAR x:complex):complex; EXTERNAL;
Accuracy
Depends on the accuracy of SIN, COS, SINH, and COSH.
Attributes
Parameter: A complex number.
Result: A complex number.
HP FORTRAN 77/XL: Callable as a system intrinsic: Y=CSINH(X).
Error: See the SIN, COS, SINH, and COSH error
descriptions.
CSQRT (or CSQRT')
CSQRT calculates the square root 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 CSQRT(VAR x:complex):complex; EXTERNAL;
Accuracy
Depends on the accuracy of SQRT.