117 SUBROUTINE slaev2( A, B, C, RT1, RT2, CS1, SN1 )
124 REAL A, B, C, CS1, RT1, RT2, SN1
131 parameter( one = 1.0e0 )
133 parameter( two = 2.0e0 )
135 parameter( zero = 0.0e0 )
137 parameter( half = 0.5e0 )
141 REAL AB, ACMN, ACMX, ACS, ADF, CS, CT, DF, RT, SM,
156 IF( abs( a ).GT.abs( c ) )
THEN
164 rt = adf*sqrt( one+( ab / adf )**2 )
165 ELSE IF( adf.LT.ab )
THEN
166 rt = ab*sqrt( one+( adf / ab )**2 )
173 IF( sm.LT.zero )
THEN
181 rt2 = ( acmx / rt1 )*acmn - ( b / rt1 )*b
182 ELSE IF( sm.GT.zero )
THEN
190 rt2 = ( acmx / rt1 )*acmn - ( b / rt1 )*b
202 IF( df.GE.zero )
THEN
212 sn1 = one / sqrt( one+ct*ct )
215 IF( ab.EQ.zero )
THEN
220 cs1 = one / sqrt( one+tn*tn )
224 IF( sgn1.EQ.sgn2 )
THEN
subroutine slaev2(a, b, c, rt1, rt2, cs1, sn1)
SLAEV2 computes the eigenvalues and eigenvectors of a 2-by-2 symmetric/Hermitian matrix.