116 SUBROUTINE zlaesy( A, B, C, RT1, RT2, EVSCAL, CS1, SN1 )
124 COMPLEX*16 A, B, C, CS1, EVSCAL, RT1, RT2, SN1
130 DOUBLE PRECISION ZERO
131 parameter ( zero = 0.0d0 )
133 parameter ( one = 1.0d0 )
135 parameter ( cone = ( 1.0d0, 0.0d0 ) )
136 DOUBLE PRECISION HALF
137 parameter ( half = 0.5d0 )
138 DOUBLE PRECISION THRESH
139 parameter ( thresh = 0.1d0 )
142 DOUBLE PRECISION BABS, EVNORM, TABS, Z
146 INTRINSIC abs, max, sqrt
154 IF( abs( b ).EQ.zero )
THEN
157 IF( abs( rt1 ).LT.abs( rt2 ) )
THEN
181 z = max( babs, tabs )
183 $ t = z*sqrt( ( t / z )**2+( b / z )**2 )
190 IF( abs( rt1 ).LT.abs( rt2 ) )
THEN
203 IF( tabs.GT.one )
THEN
204 t = tabs*sqrt( ( one / tabs )**2+( sn1 / tabs )**2 )
206 t = sqrt( cone+sn1*sn1 )
209 IF( evnorm.GE.thresh )
THEN
subroutine zlaesy(A, B, C, RT1, RT2, EVSCAL, CS1, SN1)
ZLAESY computes the eigenvalues and eigenvectors of a 2-by-2 complex symmetric matrix.