1
double complex function qlLnrat(x,y)
2
************************************************************************
5
c Lnrat(x,y)=log(x-i*ep)-log(y-i*ep) *
6
c this function is hard-wired for sign of epsilon we must adjust *
7
c sign of x and y to get the right sign for epsilon *
8
************************************************************************
10
include 'qlconstants.f'
11
double precision x,y,htheta
12
C--- define Heaviside theta function (=1 for x>0) and (0 for x < 0)
13
htheta(x)=half+half*sign(one,x)
14
qlLnrat=dcmplx(dlog(abs(x/y)))
15
. -impi*dcmplx((htheta(-x)-htheta(-y)))