! Last change: DOS 3 Aug 2000 6:21 pm ! *** copyright 2000 *** ! *** filename qimhof.f95 *** John F. Monahan ** ! ********************** program pqimhof ! compute the distribution of a weighted sum of chi-square variables ! using Imhoff's method of inversion of the characteristic function ! implicit none real, dimension(10) :: wgt,nc real x1,x2,x3,q real, parameter :: delta = .01 ! use this delta for all cases integer, dimension(10) :: df integer icase,kk,m,j real qimhof ! 20 format(i3,i4) 21 format(f5.2,i3,f5.2) 22 format(3f6.1) 23 format(2x,'Case',i2,4x,'m=',i2,3x,' x=',f6.2,5x,'Pr(Q