Sgmentation fault from hypergeometric function

Duane Nykamp nykamp@math.ucla.edu
Wed Dec 19 13:20:00 GMT 2001


I'm using a precompiled version 1.0 of the gsl library on Redhat Linux. 
    Calling gsl_sf_hyperg_1F1 with the first two arguments being 1.0 and 
0.5 leads to a segmentation fault.  Changing the first parameter to 
1.01, for example, removes the problem.

Thus, the first program produces a segmentation fault, but the second is 
fine.

Duane

----------------------------


#include <gsl/gsl_sf_hyperg.h>
#include <iostream.h>

int main() {

   cout << gsl_sf_hyperg_1F1(1.0, 0.5, 1.0) << "\n";

}


-----------------------------


#include <gsl/gsl_sf_hyperg.h>
#include <iostream.h>

int main() {

   cout << gsl_sf_hyperg_1F1(1.01, 0.5, 1.0) << "\n";

}



More information about the Gsl-discuss mailing list