101 SUBROUTINE slae2( A, B, C, RT1, RT2 )
108 REAL A, B, C, RT1, RT2
115 parameter( one = 1.0e0 )
117 parameter( two = 2.0e0 )
119 parameter( zero = 0.0e0 )
121 parameter( half = 0.5e0 )
124 REAL 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 slae2(a, b, c, rt1, rt2)
SLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix.