This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]