[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] Beginner help with gsl_ran_chisq_pdf
From: |
Lesley De Cruz |
Subject: |
Re: [Help-gsl] Beginner help with gsl_ran_chisq_pdf |
Date: |
Mon, 4 Jun 2012 09:53:21 +0200 |
On 4 June 2012 02:48, Regis Smith <address@hidden> 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