This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Sgmentation fault from hypergeometric function
- From: Duane Nykamp <nykamp at math dot ucla dot edu>
- To: gsl-discuss at sources dot redhat dot com
- Date: Tue, 18 Dec 2001 13:20:00 -0800
- Subject: 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";
}