94 subroutine ksamppw(ini, coef, power, node, n, x, fx)
122 real*8 cum(*), intgv(*)
134 if(power(i) .ne. 1.
d0)
then 135 inte(i) = coef(i)/(1.0-power(i))*
136 * (node(i+1)**(1.-power(i)) - node(i)**(1.-power(i)))
138 inte(i) = coef(i) * log(node(i+1)/node(i))
147 ci(i) = ci(i) + ci(i-1)
158 if(u .le. ci(i))
then 169 if(power(j) .ne. 1.
d0)
then 170 temp = node(j+1)**(1.-power(j)) -
171 * inte(j)*u/( coef(j)/(1. - power(j)) )
173 x = temp**(1./(1.-power(j)))
175 x = (node(j+1)/node(j))**u * node(j)
177 fx = coef(j) * x **(-power(j))
183 entry ksamppwq(cum, intgv, np)
198 subroutine ksamppw2(coef, power, xp, cum, intgv, np, x, fx)
221 if(u .le. cum(i))
then 230 temp = xp(j+1)**(1.-power(j)) -
231 * intgv(j)*u/( coef(j)/(1. - power(j)) )
233 x = temp**(1./(1.-power(j)))
234 fx = coef(j) * x**(-power(j))
239 subroutine ksamppwx(c, p, x0, n, xp, c2)
254 c2(i) = c(i)* x0(i)**p(i)
261 * (c2(i)/c2(i+1) )**(1./(p(i) - p(i+1)))
271 subroutine ksamppwmrg(c1, p1, x1, n1, c2, p2, x2, n2,
297 x(1) = max(x1(1), x2(1))
298 do while (i .le. n1 .and. j .le. n2)
299 if(x1(i+1) .lt. x2(j+1) )
then 306 elseif(x1(i+1) .eq. x2(j+1))
then integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
subroutine ksamppw2(coef, power, xp, cum, intgv, np, x, fx)
subroutine ksamppwx(c, p, x0, n, xp, c2)
subroutine ksamppwmrg(c1, p1, x1, n1, c2, p2, x2, n2, c, p, x, n)
subroutine ksamppw(ini, coef, power, node, n, x, fx)