Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
pycdiv.f
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file pycdiv.f
1
2
C*********************************************************************
3
4
C...PYCDIV
5
C...Auxiliary to PYCMQR
6
C
7
C COMPLEX DIVISION, (CR,CI) = (AR,AI)/(BR,BI)
8
C
9
10
SUBROUTINE
pycdiv
(AR,AI,BR,BI,CR,CI)
11
12
DOUBLE PRECISION
ar,ai,br,bi,cr,
ci
13
DOUBLE PRECISION
s
,ars,ais,brs,bis
14
15
s
= dabs(br) + dabs(bi)
16
ars = ar/
s
17
ais = ai/
s
18
brs = br/
s
19
bis = bi/
s
20
s
= brs**2 + bis**2
21
cr = (ars*brs + ais*bis)/
s
22
ci
= (ais*brs - ars*bis)/
s
23
RETURN
24
END
pythia6
blob
master
pythiaeRHIC
pythia
pycdiv.f
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:40
using
1.8.2 with
sPHENIX GitHub integration