2 SUBROUTINE ZUCHK
(YR
, YI
, NZ
, ASCLE
, TOL
)
3 C***BEGIN PROLOGUE ZUCHK
5 C***PURPOSE Subsidiary to SERI, ZUOIK, ZUNK1, ZUNK2, ZUNI1, ZUNI2 and
8 C***TYPE ALL (CUCHK-A, ZUCHK-A)
9 C***AUTHOR Amos, D. E., (SNL)
12 C Y ENTERS AS A SCALED QUANTITY WHOSE MAGNITUDE IS GREATER THAN
13 C EXP(-ALIM)=ASCLE=1.0E+3*D1MACH(1)/TOL. THE TEST IS MADE TO SEE
14 C IF THE MAGNITUDE OF THE REAL OR IMAGINARY PART WOULD UNDERFLOW
15 C WHEN Y IS SCALED (BY TOL) TO ITS PROPER VALUE. Y IS ACCEPTED
16 C IF THE UNDERFLOW IS AT LEAST ONE PRECISION BELOW THE MAGNITUDE
17 C OF THE LARGEST COMPONENT; OTHERWISE THE PHASE ANGLE DOES NOT HAVE
18 C ABSOLUTE ACCURACY AND AN UNDERFLOW IS ASSUMED.
20 C***SEE ALSO SERI, ZKSCL, ZUNI1, ZUNI2, ZUNK1, ZUNK2, ZUOIK
21 C***ROUTINES CALLED (NONE)
22 C***REVISION HISTORY (YYMMDD)
24 C 910415 Prologue converted to Version 4.0 format. (BAB)
25 C***END PROLOGUE ZUCHK
28 DOUBLE PRECISION ASCLE
, SS
, ST
, TOL
, WR
, WI
, YR
, YI
30 C***FIRST EXECUTABLE STATEMENT ZUCHK
35 IF (ST
.GT
.ASCLE
) RETURN