1 REAL function
genf(dfn,dfd)
47 IF (.NOT. (dfn.LE.0.0.OR.dfd.LE.0.0))
GO TO 10
48 WRITE (*,*)
'Degrees of freedom nonpositive in GENF - abort!'
49 WRITE (*,*)
'DFN value: ',dfn,
'DFD value: ',dfd
50 CALL xstopx (
'Degrees of freedom nonpositive in GENF - abort!')
52 10 xnum = 2.0*
sgamma(dfn/2.0)/dfn
55 xden = 2.0*
sgamma(dfd/2.0)/dfd
59 IF (.NOT. (xden.LE. (1.0e-37*xnum)))
GO TO 20
60 WRITE (*,*)
' GENF - generated numbers would cause overflow'
61 WRITE (*,*)
' Numerator ',xnum,
' Denominator ',xden
65 WRITE (*,*)
' GENF returning 1.0E37'
real function genf(dfn, dfd)