[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: Regis Smith
Subject: Re: [Help-gsl] Beginner help with gsl_ran_chisq_pdf
Date: Mon, 4 Jun 2012 12:38:52 -0700

On Jun 4, 2012, at 12:53 AM, Lesley De Cruz wrote:

> On 4 June 2012 02:48, Regis Smith <address@hidden> wrote:
>> #include<gsl/gsl_rng.h>
> Did you mean:
> #include <gsl/gsl_randist.h>

Ahh!  Indeed, it was an embarrassingly silly mistake.  I didn't read the 
documentation carefully.  Thanks!

>>    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

[Prev in Thread] Current Thread [Next in Thread]