#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int main (void)
{
 double x = 5.0;
 double y = gsl_sf_bessel_J0 (x);
 printf ("J0(%g) = %.18e\n", x, y);
 return 0;
}
the above program can work well,but the following can't,I can not figure out 
the reason.would you like to help me,please? the VC++6.0 give a error" 
Unhandled exception in me.exe (LIBGSL.DLL):0xc0000005:Access Violation" 
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
    
int main (void)
{
 
 gsl_rng *r;
 gsl_rng_env_setup();
 r = gsl_rng_alloc(gsl_rng_mt19937);
 gsl_ran_gaussian (r,1.0);
 return 0;
}  
_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to