This function extends FORTRAN's generic function SINH to evaluate the complex hyperbolic sine.
SINH — Complex function value. (Output)
Z — Complex number representing the angle in radians for which the complex hyperbolic sine is desired. (Input)
Generic: SINH (Z)
Specific: The specific interface names are CSINH and ZSINH.
Complex: CSINH (Z)
Double complex: The double complex function name is ZSINH.
The argument z must satisfy
where ε = AMACH(4) is the machine precision and ℑz is the imaginary part of z.
In this example, sinh(5 − i) is computed and printed.
USE SINH_INT
USE UMACH_INT
IMPLICIT NONE
! Declare variables
INTEGER NOUT
COMPLEX VALUE, Z
! Compute
Z = (5.0, -1.0)
VALUE = SINH(Z)
! Print the results
CALL UMACH (2, NOUT)
WRITE (NOUT,99999) Z, VALUE
99999 FORMAT (' SINH((', F6.3, ',', F6.3, ')) = (',&
F7.3, ',', F7.3, ')')
END
SINH(( 5.000,-1.000)) = ( 40.092,-62.446)
PHONE: 713.784.3131 FAX:713.781.9260 |