This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
gsl-chisquare cumulative density function
- To: gsl-discuss at sources dot redhat dot com
- Subject: gsl-chisquare cumulative density function
- From: Gilles Frising <frising at mail dot desy dot de>
- Date: Tue, 25 Sep 2001 18:58:44 +0200
Hello there,
I wanted to use the cumulative chisquare pdf of gsl:
`gsl_ran_chisq_pdf'.
I checked this function in maple,cernlib and gsl, and i found different
result for gsl.
MAPLE:
statevalf[cdf,chisquare[6]](3.);
.1911531695
==========
CERNLIB:
function: http://wwwinfo.cern.ch/asdoc/shortwrupsdir/g100/top.html
extern "C" float prob_(float&,int&);
int n=6;
float x=3.;
cout<<"prob: "<<1.-prob_(x,n)<<endl;
prob: 0.191153
========
GSL:
gsl_ran_chisq_pdf(3.,6.): 0.125511
=========
Is this a bug or have i done sth. wrong?
ciao,
Gilles