1 DOUBLE PRECISION FUNCTION AZABS
(ZR
, ZI
)
2 C***BEGIN PROLOGUE AZABS
3 C***REFER TO ZBESH,ZBESI,ZBESJ,ZBESK,ZBESY,ZAIRY,ZBIRY
5 C AZABS COMPUTES THE ABSOLUTE VALUE OR MAGNITUDE OF A DOUBLE
6 C PRECISION COMPLEX VARIABLE CMPLX(ZR,ZI)
8 C***ROUTINES CALLED (NONE)
10 DOUBLE PRECISION ZR
, ZI
, U
, V
, Q
, S
14 C-----------------------------------------------------------------------
15 C S*1.0D0 MAKES AN UNNORMALIZED UNDERFLOW ON CDC MACHINES INTO A
17 C-----------------------------------------------------------------------
19 IF (S
.EQ
.0.0D
+0) GO TO 20
22 AZABS
= V*DSQRT
(1.D
+0+Q*Q
)
25 AZABS
= U*DSQRT
(1.D
+0+Q*Q
)