]> www.ginac.de Git - ginac.git/blobdiff - ginac/inifcns_zeta.cpp
- dummy index renamer didn't account for internal dummy indices of objects
[ginac.git] / ginac / inifcns_zeta.cpp
index a20e534f21a5c2ddfae4026273a55bb7f133c6b2..0b3046e17977c687589a289bff4f11e8e119572d 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of the Zeta-function and some related stuff. */
 
 /*
- *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 #include <stdexcept>
 
 #include "inifcns.h"
-#include "ex.h"
 #include "constant.h"
 #include "numeric.h"
 #include "power.h"
 #include "symbol.h"
 #include "utils.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 //////////
 // Riemann's Zeta-function
@@ -83,10 +80,11 @@ static ex zeta1_deriv(const ex & x, unsigned deriv_param)
 
 const unsigned function_index_zeta1 =
        function::register_new(function_options("zeta").
-                                                  eval_func(zeta1_eval).
-                                                  evalf_func(zeta1_evalf).
-                          derivative_func(zeta1_deriv).
-                          overloaded(2));
+                              eval_func(zeta1_eval).
+                              evalf_func(zeta1_evalf).
+                              derivative_func(zeta1_deriv).
+                           latex_name("\\zeta").
+                              overloaded(2));
 
 //////////
 // Derivatives of Riemann's Zeta-function  zeta(0,x)==zeta(x)
@@ -117,10 +115,8 @@ static ex zeta2_deriv(const ex & n, const ex & x, unsigned deriv_param)
 
 const unsigned function_index_zeta2 =
        function::register_new(function_options("zeta").
-                                                  eval_func(zeta2_eval).
-                          derivative_func(zeta2_deriv).
-                          overloaded(2));
+                              eval_func(zeta2_eval).
+                              derivative_func(zeta2_deriv).
+                              overloaded(2));
 
-#ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC