On 4 June 2012 02:48, Regis Smith <[email protected]> wrote:
> #include<gsl/gsl_rng.h>

Did you mean:
#include <gsl/gsl_randist.h>

>    printf("x=%f; df=%f; pdf=%f\n",x,df,gsl_ran_chisq_pdf(x,df));
> I compile with "gcc chisq_pdf.c -lgsl -lgslcblas -lm -o chisq_pdf", but
> all inputs give me zero.

The function gsl_ran_chisq_pdf is implicitly declared in your example,
and will return an int (i.e. 0).
Compiling with -Wall can help you track down this kind of problem.

Best regards,
Lesley

Reply via email to