zexp.cpp 992 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* zexp.f -- translated by f2c (version 20100827).
  2. This file no longer depends on f2c.
  3. */
  4. #include "slatec-internal.hpp"
  5. int zexp_(double *ar, double *ai, double *br,
  6. double *bi)
  7. {
  8. /* Local variables */
  9. double ca, cb, zm;
  10. /* ***BEGIN PROLOGUE ZEXP */
  11. /* ***SUBSIDIARY */
  12. /* ***PURPOSE Subsidiary to ZBESH, ZBESI, ZBESJ, ZBESK, ZBESY, ZAIRY and */
  13. /* ZBIRY */
  14. /* ***LIBRARY SLATEC */
  15. /* ***TYPE ALL (ZEXP-A) */
  16. /* ***AUTHOR Amos, D. E., (SNL) */
  17. /* ***DESCRIPTION */
  18. /* DOUBLE PRECISION COMPLEX EXPONENTIAL FUNCTION B=EXP(A) */
  19. /* ***SEE ALSO ZAIRY, ZBESH, ZBESI, ZBESJ, ZBESK, ZBESY, ZBIRY */
  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 ZEXP */
  25. /* ***FIRST EXECUTABLE STATEMENT ZEXP */
  26. zm = exp(*ar);
  27. ca = zm * cos(*ai);
  28. cb = zm * sin(*ai);
  29. *br = ca;
  30. *bi = cb;
  31. return 0;
  32. } /* zexp_ */