54 subroutine kdexpintf(func, a, b, eps, ans, error, icon)
151 parameter(halventime = 5, pointsinunit = 32)
154 * totalpoints = blocks * pointsinunit + 1 )
163 real*8 y(0:totalpoints), w(0:totalpoints)
164 real*8 opy(0:totalpoints),omy(0:totalpoints)
165 real*8 f(0:totalpoints)
166 real*8 machmin, machmax
172 real*8 t, c1, ans1, ans2, step, f2, ytox, ytoxn, ytoxp
173 real*8 temp, xa(2), expm, expp
174 integer i, j, jstep, k
176 logical first /.true./
178 save first, y, w, halfpi, tmax, h, opy, omy, temp
180 ytox(k) = c1*(y(k) + 1) + a
181 ytoxn(k) = -c1*opy(k)
194 tmax = log(log(sqrt(machmin)/2)/(-2))
196 h = 2*tmax/totalpoints
201 do i = 0, totalpoints
203 temp = halfpi * sinh(t)
209 opy(i) = 2*expp/(expp + expm)
210 omy(i) = 2*expm/(expp + expm)
212 w(i) = cosh(t) / cosh( halfpi*sinh(t) )**2
229 do j = 0, totalpoints, jstep
231 * mod( mod(j, pointsinunit), jstep*2) .eq. 0)
then 235 if(y(j) .lt. 0. )
then 240 f2 = func( xa ) * w(j)
247 if(abs(ans2) .gt. 1.
d0)
then 248 error =abs( abs(ans1/ans2)-1.
d0 )
249 if(error .le. eps)
then 255 error =abs( abs(ans1/ans2)-1.
d0 )
256 if(error .le. eps)
then 267 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 kdexpintf(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