X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Finifcns_gamma.cpp;h=5683fd21328d91133d8f311cd6f8e804d77495fe;hp=34a390ed23e23e1b412609399f926328596570cf;hb=9eab44408b9213d8909b7a9e525f404ad06064dd;hpb=487e5659efe401683eee0381b0d23f967ffffc3c;ds=inline diff --git a/ginac/inifcns_gamma.cpp b/ginac/inifcns_gamma.cpp index 34a390ed..5683fd21 100644 --- a/ginac/inifcns_gamma.cpp +++ b/ginac/inifcns_gamma.cpp @@ -30,6 +30,8 @@ #include "power.h" #include "symbol.h" +namespace GiNaC { + ////////// // gamma function ////////// @@ -87,12 +89,12 @@ ex gamma_diff(ex const & x, unsigned diff_param) { ASSERT(diff_param==0); - return power(x, -1); //!! + return power(x, -1); // FIXME } ex gamma_series(ex const & x, symbol const & s, ex const & point, int order) { - //!! Only handle one special case for now... + // FIXME: Only handle one special case for now... if (x.is_equal(s) && point.is_zero()) { ex e = 1 / s - EulerGamma + s * (power(Pi, 2) / 12 + power(EulerGamma, 2) / 2) + Order(power(s, 2)); return e.series(s, point, order); @@ -101,3 +103,5 @@ ex gamma_series(ex const & x, symbol const & s, ex const & point, int order) } REGISTER_FUNCTION(gamma, gamma_eval, gamma_evalf, gamma_diff, gamma_series); + +} // namespace GiNaC