OpenLibm/slatec/zmlt.f
Viral B. Shah c977aa998f Add Makefile.extras to build libopenlibm-extras.
Replace amos with slatec
2012-12-31 16:37:05 -05:00

27 lines
758 B
Fortran

*DECK ZMLT
SUBROUTINE ZMLT (AR, AI, BR, BI, CR, CI)
C***BEGIN PROLOGUE ZMLT
C***SUBSIDIARY
C***PURPOSE Subsidiary to ZBESH, ZBESI, ZBESJ, ZBESK, ZBESY, ZAIRY and
C ZBIRY
C***LIBRARY SLATEC
C***TYPE ALL (ZMLT-A)
C***AUTHOR Amos, D. E., (SNL)
C***DESCRIPTION
C
C DOUBLE PRECISION COMPLEX MULTIPLY, C=A*B.
C
C***SEE ALSO ZAIRY, ZBESH, ZBESI, ZBESJ, ZBESK, ZBESY, ZBIRY
C***ROUTINES CALLED (NONE)
C***REVISION HISTORY (YYMMDD)
C 830501 DATE WRITTEN
C 910415 Prologue converted to Version 4.0 format. (BAB)
C***END PROLOGUE ZMLT
DOUBLE PRECISION AR, AI, BR, BI, CR, CI, CA, CB
C***FIRST EXECUTABLE STATEMENT ZMLT
CA = AR*BR - AI*BI
CB = AR*BI + AI*BR
CR = CA
CI = CB
RETURN
END