答案0 :(得分:7). 这可以使用upvalues轻松完成 f[x_] + f[y_] /; x == -y ^:= 0. 通常,Mathematica会尝试将上述规则分配给 Plus ,这当然不起作用,因为它受到保护。
確定! 回上一頁