4 subroutine ktrpzintt2(t, intv, n, xt, intvx, a, b, ans)
26 if(aa .le. xt(1,i))
goto 10
34 if(bb .ge. xt(1,i))
goto 20
43 * (t(1,i1)- t(1,i1-1))/ (xt(1,i1) - xt(1,i1-1)) *
44 * (aa - xt(1,i1-1)) + t(1,i1-1)
45 ans = ans + (xt(1,i1)- aa) * (fa + t(1,i1))/2
48 fb = (t(1,i2+1) - t(1, i2))/ (xt(1,i2+1) - xt(1,i2)) *
49 * (bb -xt(1,i2)) + t(1,i2)
50 ans = ans+ (bb - xt(1,i2)) * (t(1,i2) + fb)/2
53 ans = ans + (xt(1,i+1) - xt(1, i)) * (t(1,i) + t(1,i+1))/2
subroutine ktrpzintt2(t, intv, n, xt, intvx, a, b, ans)