99 SUBROUTINE slae2( A, B, C, RT1, RT2 )
106 REAL A, B, C, RT1, RT2
113 parameter( one = 1.0e0 )
115 parameter( two = 2.0e0 )
117 parameter( zero = 0.0e0 )
119 parameter( half = 0.5e0 )
122 REAL AB, ACMN, ACMX, ADF, DF, RT, SM, TB
136 IF( abs( a ).GT.abs( c ) )
THEN
144 rt = adf*sqrt( one+( ab / adf )**2 )
145 ELSE IF( adf.LT.ab )
THEN
146 rt = ab*sqrt( one+( adf / ab )**2 )
153 IF( sm.LT.zero )
THEN
160 rt2 = ( acmx / rt1 )*acmn - ( b / rt1 )*b
161 ELSE IF( sm.GT.zero )
THEN
168 rt2 = ( acmx / rt1 )*acmn - ( b / rt1 )*b
subroutine slae2(a, b, c, rt1, rt2)
SLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix.