mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
22 lines
549 B
Fortran
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
|