79 parameter( zero = 0.0e0 )
82 REAL w, xabs, yabs,
zabs, hugeval
88 INTRINSIC abs, max, sqrt
92 hugeval =
slamch(
'Overflow' )
96 w = max( xabs, yabs,
zabs )
97 IF( w.EQ.zero .OR. w.GT.hugeval )
THEN
103 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