I expected the two plots to be identical. Can anyone confirm that the discrepancies show a bug?
b[s_, v_] := If[s == 0, 1, -s*Zeta[1 - s, v]];
Table[Expand[FullSimplify[b[n, x]]], {n, 1, 6}]
Plot[%, {x, -1, 3/2}, PlotRange -> {-1, 1}]
Table[BernoulliB[n, x], {n, 1, 6}]
Plot[%, {x, -1, 3/2}, PlotRange -> {-1, 1}]
b[s_, v_] := If[s == 0, 1, -s*Zeta[1 - s, v]]; funs1 = Table[Expand[FullSimplify[b[n, x]]], {n, 1, 6}] // FunctionExpand; funs2 = Table[BernoulliB[n, x], {n, 1, 6}]; Grid[{funs1, funs2}, Frame -> All]
$\endgroup$MathWorld
states that there are two different forms of the Hurwitz zeta function, one implemented asHurwitzZeta[s, a]
, the other asZeta[s, a]
and the two are identical only forRe[a] > 0
. $\endgroup$