question: public static double dchisq ( double x ) { if ( x == 0.0 ) return Double . POSITIVE_INFINITY ; double xh = Math . sqrt ( x ) ; return dnorm ( xh ) / xh ; }
target:  Returns the density of the Chi-squared distribution.