47 SUBROUTINE drotg(DA,DB,C,S)
55 DOUBLE PRECISION C,DA,DB,S
61 DOUBLE PRECISION R,ROE,SCALE,Z
64 INTRINSIC dabs,dsign,dsqrt
67 IF (dabs(da).GT.dabs(db)) roe = da
68 scale = dabs(da) + dabs(db)
69 IF (scale.EQ.0.0d0)
THEN
75 r = scale*dsqrt((da/scale)**2+ (db/scale)**2)
76 r = dsign(1.0d0,roe)*r
80 IF (dabs(da).GT.dabs(db)) z = s
81 IF (dabs(db).GE.dabs(da) .AND. c.NE.0.0d0) z = 1.0d0/c
subroutine drotg(DA, DB, C, S)
DROTG