[PATCH] Fix zeta(x, s).evalf() when x and s aren't lists.
authorStefan Weinzierl <weinzierl@uni-mainz.de>
Fri, 10 Apr 2020 16:01:28 +0000 (18:01 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Fri, 10 Apr 2020 16:01:28 +0000 (18:01 +0200)
ginac/inifcns_nstdsums.cpp

index a843132a309f0c47524ac23479be29406380edc9..474ed3e233b79adcd94235fd09ca703d902dc7b6 100644 (file)
@@ -4066,7 +4066,8 @@ static ex zeta2_evalf(const ex& x, const ex& s)
                return numeric(zeta_do_Hoelder_convolution(xi, si));
        }
 
-       return zeta(x, s).hold();
+       // x and s are not lists: convert to lists
+       return zeta(lst{x}, lst{s}).evalf();
 }