65 DOUBLE PRECISION FUNCTION dlapy3( X, Y, Z )
72 DOUBLE PRECISION x, y, z
79 parameter( zero = 0.0d0 )
82 DOUBLE PRECISION w, xabs, yabs,
zabs, hugeval
88 INTRINSIC abs, max, sqrt
92 hugeval =
dlamch(
'Overflow' )
96 w = max( xabs, yabs,
zabs )
97 IF( w.EQ.zero .OR. w.GT.hugeval )
THEN
103 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