9 subroutine kdexpintfb(func, a, b, eps, ans, error, icon)
106 parameter(halventime = 5, pointsinunit = 32)
109 * totalpoints = blocks * pointsinunit + 1 )
118 real*8 y(0:totalpoints), w(0:totalpoints)
119 real*8 opy(0:totalpoints),omy(0:totalpoints)
120 real*8 f(0:totalpoints)
121 real*8 machmin, machmax
127 real*8 t, c1, ans1, ans2, step, f2, ytox, ytoxn, ytoxp
128 real*8 temp, xa(2), expm, expp
129 integer i, j, jstep, k
131 logical first /.true./
133 save first, y, w, halfpi, tmax, h, opy, omy, temp
135 ytox(k) = c1*(y(k) + 1) + a
136 ytoxn(k) = -c1*opy(k)
149 tmax = log(log(sqrt(machmin)/2)/(-2))
151 h = 2*tmax/totalpoints
156 do i = 0, totalpoints
158 temp = halfpi * sinh(t)
164 opy(i) = 2*expp/(expp + expm)
165 omy(i) = 2*expm/(expp + expm)
167 w(i) = cosh(t) / cosh( halfpi*sinh(t) )**2
184 do j = 0, totalpoints, jstep
186 * mod( mod(j, pointsinunit), jstep*2) .eq. 0)
then 190 if(y(j) .lt. 0. )
then 195 f2 = func( xa ) * w(j)
202 if(abs(ans2) .gt. 1.
d0)
then 203 error =abs( abs(ans1/ans2)-1.
d0 )
204 if(error .le. eps)
then 209 error = abs(ans2-ans1)
210 if(error .le. eps)
then 221 ans = ans2 * halfpi *c1
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
subroutine kdmachmnmx(xmin, xmax)
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
subroutine kdexpintfb(func, a, b, eps, ans, error, icon)
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon ! knockon is considered Obsolete *PhotoProd false