X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Finifcns_zeta.cpp;h=7a8b089aa11131876f2d528dbd1f86c7a73cfe6f;hp=63637374dfb8d4590a1f8d360aee94d0e56e83a0;hb=5184d67c0ec1056ac039419e08558632793a4e2c;hpb=b2613f4b583961c3b3fe46dc6ddd2bd1f1b2684c diff --git a/ginac/inifcns_zeta.cpp b/ginac/inifcns_zeta.cpp index 63637374..7a8b089a 100644 --- a/ginac/inifcns_zeta.cpp +++ b/ginac/inifcns_zeta.cpp @@ -81,7 +81,12 @@ static ex zeta1_deriv(const ex & x, unsigned deriv_param) 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) @@ -110,7 +115,11 @@ static ex zeta2_deriv(const ex & n, const ex & x, unsigned deriv_param) 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