GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
liboctave
cruft
amos
zdiv.f
Go to the documentation of this file.
1
SUBROUTINE
zdiv
(AR, AI, BR, BI, CR, CI)
2
C***BEGIN PROLOGUE ZDIV
3
C***REFER TO ZBESH,ZBESI,ZBESJ,ZBESK,ZBESY,ZAIRY,ZBIRY
4
C
5
C DOUBLE PRECISION COMPLEX DIVIDE C=A/B.
6
C
7
C***ROUTINES CALLED XZABS
8
C***END PROLOGUE ZDIV
9
DOUBLE PRECISION
ar, ai, br, bi, cr, ci, bm, ca, cb, cc, cd
10
DOUBLE PRECISION
xzabs
11
bm = 1.0d0/
xzabs
(br,bi)
12
cc = br*bm
13
cd = bi*bm
14
ca = (ar*cc+ai*cd)*bm
15
cb = (ai*cc-ar*cd)*bm
16
cr = ca
17
ci = cb
18
RETURN
19
END
Generated on Mon Dec 30 2013 03:04:45 for GNU Octave by
1.8.1.2