X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Finifcns_gamma.cpp;h=ca16b18b22cfdf45639efc2b3c541f126f8ea9ae;hp=497c37a6adf62beccb007f46406c628337e98d33;hb=70a32266cc1ada19b307b859305f215b5297bc7c;hpb=a873869942dcf50989760464a190949e5ad32bbe;ds=sidebyside diff --git a/ginac/inifcns_gamma.cpp b/ginac/inifcns_gamma.cpp index 497c37a6..ca16b18b 100644 --- a/ginac/inifcns_gamma.cpp +++ b/ginac/inifcns_gamma.cpp @@ -234,8 +234,8 @@ static ex beta_eval(const ex & x, const ex & y) // treat all problematic x and y that may not be passed into tgamma, // because they would throw there although beta(x,y) is well-defined // using the formula beta(x,y) == (-1)^y * beta(1-x-y, y) - const numeric nx = ex_to(x); - const numeric ny = ex_to(y); + const numeric &nx = ex_to(x); + const numeric &ny = ex_to(y); if (nx.is_real() && nx.is_integer() && ny.is_real() && ny.is_integer()) { if (nx.is_negative()) { @@ -345,7 +345,7 @@ static ex psi1_evalf(const ex & x) static ex psi1_eval(const ex & x) { if (x.info(info_flags::numeric)) { - const numeric nx = ex_to(x); + const numeric &nx = ex_to(x); if (nx.is_integer()) { // integer case if (nx.is_positive()) { @@ -453,8 +453,8 @@ static ex psi2_eval(const ex & n, const ex & x) return log(tgamma(x)); if (n.info(info_flags::numeric) && n.info(info_flags::posint) && x.info(info_flags::numeric)) { - const numeric nn = ex_to(n); - const numeric nx = ex_to(x); + const numeric &nn = ex_to(n); + const numeric &nx = ex_to(x); if (nx.is_integer()) { // integer case if (nx.is_equal(_num1))