COSMOS v7.655  COSMOSv7655
(AirShowerMC)
ck23.f
Go to the documentation of this file.
1 !c test ck23: K2/3
2 ! implicit none
3 ! real*8 x, y, v, kv, ck23
4 ! integer icon
5 !
6 ! x = 1.d-4
7 ! v = 2.d0/3.d0
8 !
9 ! do while (x .lt. 100.)
10 ! call dbkr(x, v, kv, icon)
11 ! y = ck23(x)
12 ! write(*, *) sngl(x), sngl(kv/y), icon
13 ! x = x * 10.**0.1
14 ! enddo
15 ! end
16 !c
17  real*8 function ck23(x)
18 ! compute K2/3(x) within 5 digit accuracy.
19 ! this uses the result of makepolfork23
20  implicit none
21  real*8 x
22  real*8 pi/3.14159265/, xl
23 
24  if(x .lt. 1.d-1) then
25  ck23 = 1.074764 * x**(-2./3)
26  if(x .gt. 0.001) then
27  ck23 =ck23 * ( (( 24.87215 *x -4.845528)*x -0.2195235)*x
28  * + 1.000107 )
29  endif
30  else
31  ck23 = exp(-x)* sqrt(pi/2/x)
32  if(x .lt. 30.) then
33  xl = log(x)
34  ck23 = ck23* ( (( -0.2016376e-02*xl + 0.1788832e-01)*xl
35  * -0.5794207e-01)*xl + 1.072769 )
36  endif
37  endif
38  end
real *8 function ck23(x)
Definition: ck23.f:18
dE dx *! Nuc Int sampling table e
Definition: cblkMuInt.h:130
dE dx *! Nuc Int sampling table d
Definition: cblkMuInt.h:130