zshch.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* zshch.f -- translated by f2c (version 20100827).
  2. This file no longer depends on f2c.
  3. */
  4. #include "slatec-internal.hpp"
  5. int zshch_(double *zr, double *zi, double *cshr,
  6. double *cshi, double *cchr, double *cchi)
  7. {
  8. /* Local variables */
  9. double ch, cn, sh, sn;
  10. /* ***BEGIN PROLOGUE ZSHCH */
  11. /* ***SUBSIDIARY */
  12. /* ***PURPOSE Subsidiary to ZBESH and ZBESK */
  13. /* ***LIBRARY SLATEC */
  14. /* ***TYPE ALL (CSHCH-A, ZSHCH-A) */
  15. /* ***AUTHOR Amos, D. E., (SNL) */
  16. /* ***DESCRIPTION */
  17. /* ZSHCH COMPUTES THE COMPLEX HYPERBOLIC FUNCTIONS CSH=SINH(X+I*Y) */
  18. /* AND CCH=COSH(X+I*Y), WHERE I**2=-1. */
  19. /* ***SEE ALSO ZBESH, ZBESK */
  20. /* ***ROUTINES CALLED (NONE) */
  21. /* ***REVISION HISTORY (YYMMDD) */
  22. /* 830501 DATE WRITTEN */
  23. /* 910415 Prologue converted to Version 4.0 format. (BAB) */
  24. /* ***END PROLOGUE ZSHCH */
  25. /* ***FIRST EXECUTABLE STATEMENT ZSHCH */
  26. sh = sinh(*zr);
  27. ch = cosh(*zr);
  28. sn = sin(*zi);
  29. cn = cos(*zi);
  30. *cshr = sh * cn;
  31. *cshi = ch * sn;
  32. *cchr = ch * cn;
  33. *cchi = sh * sn;
  34. return 0;
  35. } /* zshch_ */