COSMOS v7.655
COSMOSv7655
(AirShowerMC)
kScsplDif.f
Go to the documentation of this file.
1
subroutine
kscspldif
(x, n, coef, nc, v, d1, d2)
2
implicit none
3
integer
n
! input size of x
4
real(4)
:: x(n)
! input
5
integer
nc
! input. size of coef(nc, 3)
6
real(4)
:: coef(nc, 3)
! input. which is output from
7
! kcsplCoeff
8
real(4)
:: v
! input. value where the interpolation is
9
! to be made to obtain the numerical
10
! differenctiation value of y
11
real(4)
:: d1
! output. 1st order differentiation
12
real(4)
:: d2
! output. 2nd ...
13
14
15
integer
i
16
real(4)
:: v1, t
17
18
call
kwhereis
(v, n, x, 1, i)
19
if
(i .eq. 0)
then
20
i = 1
21
endif
22
v1 = v- x(i)
23
t = coef(i,2) + 3.0 * coef(i,3) * v1
24
d1 = coef(i,1) + (t + coef(i,2)) * v1
25
d2 = t + t
26
end
kscspldif
subroutine kscspldif(x, n, coef, nc, v, d1, d2)
Definition:
kScsplDif.f:2
kwhereis
subroutine kwhereis(x, in, a, step, loc)
Definition:
kdwhereis.f:63
KKlib
kScsplDif.f
Generated by
1.8.13