Hello,

I had little trouble with the function (double) gsl_sf_exp(double) : when a pretty low value is passed as parameter (empirically : lower than -750.0), this function causes a crash in the calling program.

This is rather surprising as exp is theorically defined for arbitrary low values.
I overcame the problem with a little patch block,

if(val < -700.0) {
        val = 0.0;
} else {
        val = gsl_sf_exp(val);
}

But I thought it was relevant to notice it.

Pierrick Bruneau

BEGIN:VCARD
VERSION:3.0
N:Bruneau;Pierrick;;;
FN:Pierrick Bruneau
ORG:Université de Nantes;
EMAIL;type=INTERNET;type=WORK;type=pref:[email protected]
TEL;type=WORK;type=pref:02 40 68 30 14
TEL;type=CELL:06 73 51 81 28
item1.ADR;type=WORK;type=pref:;;Rue Christian Pauc;Nantes;;44300;France
item1.X-ABADR:fr
X-ABUID:CE70FC57-D1AF-4984-B7E5-E9EDBCD1B7EA\:ABPerson
END:VCARD


_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to