~maddevelopers/mg5amcnlo/2.9.4

« back to all changes in this revision

Viewing changes to vendor/CutTools/src/qcdloop/qllnrat.f

pass to v2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
      double complex function qlLnrat(x,y)
 
2
************************************************************************
 
3
*     Author: R.K. Ellis                                               *
 
4
*     August, 1998.                                                    *
 
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
************************************************************************
 
9
      implicit none
 
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)))
 
16
      return
 
17
      end
 
18