123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /* zshch.f -- translated by f2c (version 20100827).
- This file no longer depends on f2c.
- */
- #include "slatec-internal.hpp"
- int zshch_(double *zr, double *zi, double *cshr,
- double *cshi, double *cchr, double *cchi)
- {
- /* Local variables */
- double ch, cn, sh, sn;
- /* ***BEGIN PROLOGUE ZSHCH */
- /* ***SUBSIDIARY */
- /* ***PURPOSE Subsidiary to ZBESH and ZBESK */
- /* ***LIBRARY SLATEC */
- /* ***TYPE ALL (CSHCH-A, ZSHCH-A) */
- /* ***AUTHOR Amos, D. E., (SNL) */
- /* ***DESCRIPTION */
- /* ZSHCH COMPUTES THE COMPLEX HYPERBOLIC FUNCTIONS CSH=SINH(X+I*Y) */
- /* AND CCH=COSH(X+I*Y), WHERE I**2=-1. */
- /* ***SEE ALSO ZBESH, ZBESK */
- /* ***ROUTINES CALLED (NONE) */
- /* ***REVISION HISTORY (YYMMDD) */
- /* 830501 DATE WRITTEN */
- /* 910415 Prologue converted to Version 4.0 format. (BAB) */
- /* ***END PROLOGUE ZSHCH */
- /* ***FIRST EXECUTABLE STATEMENT ZSHCH */
- sh = sinh(*zr);
- ch = cosh(*zr);
- sn = sin(*zi);
- cn = cos(*zi);
- *cshr = sh * cn;
- *cshi = ch * sn;
- *cchr = ch * cn;
- *cchi = sh * sn;
- return 0;
- } /* zshch_ */
|