This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
problems when using gsl_ran_ugaussian
- From: Yves Caniou <Yves dot Caniou at loria dot fr>
- To: gsl-discuss at sources dot redhat dot com
- Date: Mon, 19 May 2003 15:16:41 +0200
- Subject: problems when using gsl_ran_ugaussian
Hi all,
Executing this code :
include <stdio.h>
#include <stdlib.h>
#include <gsl/gsl_statistics.h>
int main(int argc,char** argv)
{
double a ;
a=gsl_ran_ugaussian_pdf(1.5) ;
printf("%ld\n",a) ;
printf("%ld\n",gsl_ran_ugaussian_pdf(1.5)) ;
a=gsl_ran_ugaussian_pdf(1.5) ;
printf("%ld\n",a) ;
}
gives the results 0 32 0 on one of my computer
and 0 12576 0 on the second one...
Still, I don't understand these results...
Thanks.
.Yves.
-: Who is General Failure, and why is he reading my hard drive? :-