1 SUBROUTINE dlas2( F, G, H, SSMIN, SSMAX )
9 DOUBLE PRECISION F, G, H, SSMAX, SSMIN
62 parameter( zero = 0.0d0 )
64 parameter( one = 1.0d0 )
66 parameter( two = 2.0d0 )
69 DOUBLE PRECISION AS, AT, AU, C, FA, FHMN, FHMX, GA, HA
72 INTRINSIC abs, max, min, sqrt
81 IF( fhmn.EQ.zero )
THEN
83 IF( fhmx.EQ.zero )
THEN
86 ssmax = max( fhmx, ga )*sqrt( one+
87 $ ( min( fhmx, ga ) / max( fhmx, ga ) )**2 )
91 as = one + fhmn / fhmx
92 at = ( fhmx-fhmn ) / fhmx
94 c = two / ( sqrt( as*as+au )+sqrt( at*at+au ) )
105 ssmin = ( fhmn*fhmx ) / ga
108 as = one + fhmn / fhmx
109 at = ( fhmx-fhmn ) / fhmx
110 c = one / ( sqrt( one+( as*au )**2 )+
111 $ sqrt( one+( at*au )**2 ) )
112 ssmin = ( fhmn*c )*au
113 ssmin = ssmin + ssmin
subroutine dlas2(F, G, H, SSMIN, SSMAX)