67 DOUBLE PRECISION FUNCTION dlapy3( X, Y, Z )
74 DOUBLE PRECISION x, y, z
81 parameter( zero = 0.0d0 )
84 DOUBLE PRECISION w, xabs, yabs,
zabs, hugeval
90 INTRINSIC abs, max, sqrt
94 hugeval =
dlamch(
'Overflow' )
98 w = max( xabs, yabs,
zabs )
99 IF( w.EQ.zero .OR. w.GT.hugeval )
THEN
105 dlapy3 = w*sqrt( ( xabs / w )**2+( yabs / w )**2+
double precision function dlamch(cmach)
DLAMCH
double precision function dlapy3(x, y, z)
DLAPY3 returns sqrt(x2+y2+z2).
program zabs
zabs tests the robustness and precision of the intrinsic ABS for double complex