mathematica问题求解 5
NSum[(-1)^(a+b+c)/Sqrt[(a+b-c)^2+(-a+b+c)^2+(a-b+c)^2],{a,-200,200},{b,-200,200},{c,-...
NSum[(-1)^(a+b+c)/Sqrt[(a+b-c)^2+(-a+b+c)^2+(a-b+c)^2],{a,-200,200},{b,-200,200},{c,-200,200}]
用mathematica算这个累次求和的时候,需要把(0,0,0)这点去掉,求问用什么语句?
怎么写? 展开
用mathematica算这个累次求和的时候,需要把(0,0,0)这点去掉,求问用什么语句?
怎么写? 展开
2个回答
展开全部
{a,-200,-1},{b,-200,200},{c,-200,200} + {a,1,200},{b,-200,200},{c,-200,200}
+ {a=0},{b,-200,-1},{c,-200,200} + {a=0},{b,1,200},{c,-200,200}
+ {a=0},{b=0},{c,-200,-1} + {a=0},{b=0},{c,1,200}
__________________________________________________________________ or you can
NSum[(-1)^(a+b+c)/(Sqrt[(a+b-c)^2+(-a+b+c)^2+(a-b+c)^2] + Boole[a==0&&b==0&&c==0]),{a,-200,200},{b,-200,200},{c,-200,200}] -1
+ {a=0},{b,-200,-1},{c,-200,200} + {a=0},{b,1,200},{c,-200,200}
+ {a=0},{b=0},{c,-200,-1} + {a=0},{b=0},{c,1,200}
__________________________________________________________________ or you can
NSum[(-1)^(a+b+c)/(Sqrt[(a+b-c)^2+(-a+b+c)^2+(a-b+c)^2] + Boole[a==0&&b==0&&c==0]),{a,-200,200},{b,-200,200},{c,-200,200}] -1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询