我对mathematica的这种行为感到困惑。以下两个表达式应返回相同的结果:
Simplify[(1 - w)^2 Sum[w^(k+kp) Sum[If[l == lp, 1, 0], {l, 0, k}, {lp, 0, kp}],
{k,0, \[Infinity]}, {kp, 0, \[Infinity]}]]
返回:
(-1 - w + w^3)/(-1 + w^2)
而严格等价的:
Simplify[(1 - w)^2 Sum[w^(k+kp) Min[k, kp],{k,0,\[Infinity]},{kp,0,\[Infinity]}]
+ (1 - w)^2 Sum[w^(k+kp) ,{k,0,\[Infinity]},{kp,0,\[Infinity]}]]
返回:
1/(1 - w^2)