OpenLibm/amos/zshch.f
2012-10-29 15:14:32 +05:30

22 lines
549 B
Fortran

SUBROUTINE ZSHCH(ZR, ZI, CSHR, CSHI, CCHR, CCHI)
C***BEGIN PROLOGUE ZSHCH
C***REFER TO ZBESK,ZBESH
C
C ZSHCH COMPUTES THE COMPLEX HYPERBOLIC FUNCTIONS CSH=SINH(X+I*Y)
C AND CCH=COSH(X+I*Y), WHERE I**2=-1.
C
C***ROUTINES CALLED (NONE)
C***END PROLOGUE ZSHCH
C
DOUBLE PRECISION CCHI, CCHR, CH, CN, CSHI, CSHR, SH, SN, ZI, ZR,
* DCOSH, DSINH
SH = DSINH(ZR)
CH = DCOSH(ZR)
SN = DSIN(ZI)
CN = DCOS(ZI)
CSHR = SH*CN
CSHI = CH*SN
CCHR = CH*CN
CCHI = SH*SN
RETURN
END