]> www.ginac.de Git - ginac.git/blobdiff - ginac/inifcns_gamma.cpp
- put everything in "GiNaC" namespace
[ginac.git] / ginac / inifcns_gamma.cpp
index 34a390ed23e23e1b412609399f926328596570cf..5683fd21328d91133d8f311cd6f8e804d77495fe 100644 (file)
@@ -30,6 +30,8 @@
 #include "power.h"
 #include "symbol.h"
 
 #include "power.h"
 #include "symbol.h"
 
+namespace GiNaC {
+
 //////////
 // gamma function
 //////////
 //////////
 // gamma function
 //////////
@@ -87,12 +89,12 @@ ex gamma_diff(ex const & x, unsigned diff_param)
 {
     ASSERT(diff_param==0);
 
 {
     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)
 {
 }
 
 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);
        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);
 }
 
 REGISTER_FUNCTION(gamma, gamma_eval, gamma_evalf, gamma_diff, gamma_series);
+
+} // namespace GiNaC