X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Finifcns_zeta.cpp;h=4be6f0226cae4f35f983c89f071a8f5afd1414a9;hp=9fdce1e84d69eec301b8a32ba1a0d38ec9b283f1;hb=c443cf647bbac14c9c3eed2565fd2df70fab9a84;hpb=955cb185a85535ab328ffedbfccdc508ce80fa91 diff --git a/ginac/inifcns_zeta.cpp b/ginac/inifcns_zeta.cpp index 9fdce1e8..4be6f022 100644 --- a/ginac/inifcns_zeta.cpp +++ b/ginac/inifcns_zeta.cpp @@ -3,7 +3,7 @@ * Implementation of the Zeta-function and some related stuff. */ /* - * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2000 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 @@ -39,7 +39,7 @@ namespace GiNaC { // Riemann's Zeta-function ////////// -static ex zeta1_evalf(ex const & x) +static ex zeta1_evalf(const ex & x) { BEGIN_TYPECHECK TYPECHECK(x,numeric) @@ -48,7 +48,7 @@ static ex zeta1_evalf(ex const & x) return zeta(ex_to_numeric(x)); } -static ex zeta1_eval(ex const & x) +static ex zeta1_eval(const ex & x) { if (x.info(info_flags::numeric)) { numeric y = ex_to_numeric(x); @@ -62,7 +62,7 @@ static ex zeta1_eval(ex const & x) if (x.info(info_flags::odd)) return zeta(x).hold(); else - return abs(bernoulli(y))*pow(Pi,x)*_num2().power(y-_num1())/factorial(y); + return abs(bernoulli(y))*pow(Pi,x)*pow(_num2(),y-_num1())/factorial(y); } else { if (x.info(info_flags::odd)) return -bernoulli(_num1()-y)/(_num1()-y); @@ -74,7 +74,7 @@ static ex zeta1_eval(ex const & x) return zeta(x).hold(); } -static ex zeta1_diff(ex const & x, unsigned diff_param) +static ex zeta1_diff(const ex & x, unsigned diff_param) { GINAC_ASSERT(diff_param==0); @@ -87,7 +87,7 @@ const unsigned function_index_zeta1 = function::register_new("zeta", zeta1_eval, // Derivatives of Riemann's Zeta-function zeta(0,x)==zeta(x) ////////// -static ex zeta2_eval(ex const & n, ex const & x) +static ex zeta2_eval(const ex & n, const ex & x) { if (n.info(info_flags::numeric)) { // zeta(0,x) -> zeta(x) @@ -98,7 +98,7 @@ static ex zeta2_eval(ex const & n, ex const & x) return zeta(n, x).hold(); } -static ex zeta2_diff(ex const & n, ex const & x, unsigned diff_param) +static ex zeta2_diff(const ex & n, const ex & x, unsigned diff_param) { GINAC_ASSERT(diff_param<2);