59 LOGICAL FUNCTION clctes( Z, D )
75 parameter ( zero = 0.0e+0, one = 1.0e+0 )
77 parameter ( czero = ( 0.0e+0, 0.0e+0 ) )
83 INTRINSIC abs, aimag, max,
REAL, SIGN
88 clctes = (
REAL( z ).LT.ZERO )
90 IF(
REAL( z ).EQ.ZERO .OR.
REAL( d ).EQ.ZERO ) then
91 clctes = ( sign( one, aimag( z ) ).NE.
92 $ sign( one, aimag( d ) ) )
93 ELSE IF( aimag( z ).EQ.zero .OR. aimag( d ).EQ.zero )
THEN
94 clctes = ( sign( one,
REAL( Z ) ).NE.
95 $ sign( one,
REAL( D ) ) )
97 zmax = max( abs(
REAL( Z ) ), abs( AIMAG( z ) ) )
98 clctes = ( (
REAL( Z ) / ZMAX )*
REAL( D )+
99 $ ( aimag( z ) / zmax )*aimag( d ).LT.zero )
logical function clctes(Z, D)
CLCTES