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]

Sgmentation fault from hypergeometric function


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";

}


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