101 SUBROUTINE dlae2( A, B, C, RT1, RT2 )
108 DOUBLE PRECISION A, B, C, RT1, RT2
115 parameter( one = 1.0d0 )
117 parameter( two = 2.0d0 )
118 DOUBLE PRECISION ZERO
119 parameter( zero = 0.0d0 )
120 DOUBLE PRECISION HALF
121 parameter( half = 0.5d0 )
124 DOUBLE PRECISION AB, ACMN, ACMX, ADF, DF, RT, SM, TB
138 IF( abs( a ).GT.abs( c ) )
THEN
146 rt = adf*sqrt( one+( ab / adf )**2 )
147 ELSE IF( adf.LT.ab )
THEN
148 rt = ab*sqrt( one+( adf / ab )**2 )
155 IF( sm.LT.zero )
THEN
162 rt2 = ( acmx / rt1 )*acmn - ( b / rt1 )*b
163 ELSE IF( sm.GT.zero )
THEN
170 rt2 = ( acmx / rt1 )*acmn - ( b / rt1 )*b
subroutine dlae2(a, b, c, rt1, rt2)
DLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix.