81 parameter( zero = 0.0e0 )
84 REAL w, xabs, yabs,
zabs, hugeval
90 INTRINSIC abs, max, sqrt
94 hugeval =
slamch(
'Overflow' )
98 w = max( xabs, yabs,
zabs )
99 IF( w.EQ.zero .OR. w.GT.hugeval )
THEN
105 slapy3 = w*sqrt( ( xabs / w )**2+( yabs / w )**2+
real function slamch(cmach)
SLAMCH
real function slapy3(x, y, z)
SLAPY3 returns sqrt(x2+y2+z2).
program zabs
zabs tests the robustness and precision of the intrinsic ABS for double complex