29       real*4 function krmnx(m, n, x)
    39       real*4  r0m, r1m, rn, rn1, rn2, krnnx
    44       if(n .lt. 0 .or. m  .lt. 0) 
then    45          write(0, *) 
' error input to krmnx; n, m=', n, m
    73                   rn = ( (2*i-1)*x*rn1 - (i-1+m)*rn2 ) /(i-m)
    88       real*4 function krnnx(n,  x)
   104          write(0,*) 
'error input to krnnx; n=',n
   149       real*4 function kpnx(n, x)
   160            elseif(n .eq. 1) 
then   162            elseif(n .ge. 2) 
then   167                   pi=( (2*i-1)*x *pim - (i-1)*pimm )/i
   174                  write(*,*) 
' n=',n,
' invalid for kpnx'   182        real*4 function kpmnx(m, n, sint, x)
   193        kpmnx = sintm * krmnx(m, n, x)
   196        real*4 function kpmnxn(m, n, sint, x)
   202        kpmnxn=kpnorm(m, n)* kpmnx(m, n, sint, x)
   226        real*4 kpmnxisin, kpnorm
   227        kpmnxisinn = kpnorm(m, n)*kpmnxisin(m, n, sint, x)
   243           kdpmnxsin= (-m*x*krmnx(m, n, x) + sint*sint*krmnx(m+1, n, x))
   255        real*4 kpnorm, kdpmnxsin
   256        kdpmnxsinn = kpnorm(m, n)* kdpmnxsin(m,  n, sint, x)
   259        real*4 function kpnorm(m, n)
   266        integer ms/-1/, ns/-1/
   272        real*4 fact(0:nn), dv, dn
   273        save first, fact, ms, ns
   279              fact(i) = i* fact(i-1)
   283        if(m .eq. ms .and. n .eq. ns)
then   284        elseif(m .gt. n) 
then   297              dn = kgamma(dble(n-m+1))
   302              dv = kgamma(dble(n+m+1))
   304           pnorms=sqrt(em* dn /dv)
 integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
real *4 function kpmnxisin(m, n, sint, x)
real *4 function kdpmnxsinn(m, n, sint, x)
real *4 function kdpmnxsin(m, n, sint, x)
real *4 function kpmnx(m, n, sint, x)
real *4 function kpnorm(m, n)
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 true
real *4 function kpmnxn(m, n, sint, x)
real *4 function kpnx(n, x)
real *4 function krmnx(m, n, x)
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
real *4 function kpmnxisinn(m, n, sint, x)
real *4 function krnnx(n, x)