zmlt.cpp 970 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* zmlt.f -- translated by f2c (version 20100827).
  2. This file no longer depends on f2c.
  3. */
  4. #include "slatec-internal.hpp"
  5. int zmlt_(double *ar, double *ai, double *br,
  6. double *bi, double *cr, double *ci)
  7. {
  8. double ca, cb;
  9. /* ***BEGIN PROLOGUE ZMLT */
  10. /* ***SUBSIDIARY */
  11. /* ***PURPOSE Subsidiary to ZBESH, ZBESI, ZBESJ, ZBESK, ZBESY, ZAIRY and */
  12. /* ZBIRY */
  13. /* ***LIBRARY SLATEC */
  14. /* ***TYPE ALL (ZMLT-A) */
  15. /* ***AUTHOR Amos, D. E., (SNL) */
  16. /* ***DESCRIPTION */
  17. /* DOUBLE PRECISION COMPLEX MULTIPLY, C=A*B. */
  18. /* ***SEE ALSO ZAIRY, ZBESH, ZBESI, ZBESJ, ZBESK, ZBESY, ZBIRY */
  19. /* ***ROUTINES CALLED (NONE) */
  20. /* ***REVISION HISTORY (YYMMDD) */
  21. /* 830501 DATE WRITTEN */
  22. /* 910415 Prologue converted to Version 4.0 format. (BAB) */
  23. /* ***END PROLOGUE ZMLT */
  24. /* ***FIRST EXECUTABLE STATEMENT ZMLT */
  25. ca = *ar * *br - *ai * *bi;
  26. cb = *ar * *bi + *ai * *br;
  27. *cr = ca;
  28. *ci = cb;
  29. return 0;
  30. } /* zmlt_ */