From 3cfd9d54b88990a9db84e7901c9edfa0b82dcbd1 Mon Sep 17 00:00:00 2001 From: Jost Migenda Date: Fri, 7 Jun 2024 20:53:40 +0100 Subject: [PATCH] =?UTF-8?q?mstl:=20Replace=20gamma=20with=20lgamma=20gamma?= =?UTF-8?q?=20is=20a=20non-standard=20extension=20in=20the=20GNU=20libc,?= =?UTF-8?q?=20see=20https://www.gnu.org/software/libc/manual/html=5Fnode/S?= =?UTF-8?q?pecial-Functions.html#index-gamma=20And=20being=20non-standard,?= =?UTF-8?q?=20it=20may=20give=20different=20results=20on=20different=20sys?= =?UTF-8?q?tems,=20see=20https://stackoverflow.com/questions/18116376/what?= =?UTF-8?q?-is-the-definition-for-gammadouble-x-and-why-is-it-different-on?= =?UTF-8?q?-two-gcc-ve=20=F0=9F=98=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mstl/math2/analysis/special functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mstl/math2/analysis/special functions.cpp b/src/mstl/math2/analysis/special functions.cpp index 976957f..2d84995 100644 --- a/src/mstl/math2/analysis/special functions.cpp +++ b/src/mstl/math2/analysis/special functions.cpp @@ -37,7 +37,7 @@ double Gamma(double N){ return tgamma(N);} }*/ // see Numerical Recipes for the algorithm -double logGamma(double N){ return gamma(N);} +double logGamma(double N){ return lgamma(N);} /*{ if(N<0.){ throw NEGATIVE_NUMBER("logGamma(double)");} double ser; double n=N; double c[6]={ 76.18009172947146,-86.50532032941677, 24.01409824083091,