]> www.ginac.de Git - ginac.git/blobdiff - ginac/inifcns_zeta.cpp
container.pl: can now generate constructors for an arbitary number
[ginac.git] / ginac / inifcns_zeta.cpp
index 63637374dfb8d4590a1f8d360aee94d0e56e83a0..7a8b089aa11131876f2d528dbd1f86c7a73cfe6f 100644 (file)
@@ -81,7 +81,12 @@ static ex zeta1_deriv(const ex & x, unsigned deriv_param)
     return zeta(_ex1(), x);
 }
 
     return zeta(_ex1(), x);
 }
 
-const unsigned function_index_zeta1 = function::register_new("zeta", zeta1_eval, zeta1_evalf, zeta1_deriv, NULL);
+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));
 
 //////////
 // Derivatives of Riemann's Zeta-function  zeta(0,x)==zeta(x)
 
 //////////
 // Derivatives of Riemann's Zeta-function  zeta(0,x)==zeta(x)
@@ -110,7 +115,11 @@ static ex zeta2_deriv(const ex & n, const ex & x, unsigned deriv_param)
     return zeta(n+1,x);
 }
 
     return zeta(n+1,x);
 }
 
-const unsigned function_index_zeta2 = function::register_new("zeta", zeta2_eval, NULL, zeta2_deriv, NULL);
+const unsigned function_index_zeta2 =
+    function::register_new(function_options("zeta").
+                           eval_func(zeta2_eval).
+                          derivative_func(zeta2_deriv).
+                          overloaded(2));
 
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC