Mathematica "与","或"的表示哪里错了?
"与","或"的表示哪里错了?输入:FindInstance[3x1+5x2+7x3==0&&x1+x2+x3==1||x1+x2+x3==3&&x1!=0&&x2!=0...
"与","或"的表示哪里错了?
输入:
FindInstance[3 x1 + 5 x2 + 7 x3 == 0 && x1 + x2 + x3 == 1 ||x1 + x2 + x3 == 3 && x1 != 0 && x2 != 0 && x3 != 0 && x1 != 1 &&x2 != 1 && x3 != 1, {x1, x2, x3}, Integers]
输出:
{{x1 -> 2, x2 -> 2, x3 -> -1}}
这明显是一个错误输出,不知错在哪里?
谢谢! 展开
输入:
FindInstance[3 x1 + 5 x2 + 7 x3 == 0 && x1 + x2 + x3 == 1 ||x1 + x2 + x3 == 3 && x1 != 0 && x2 != 0 && x3 != 0 && x1 != 1 &&x2 != 1 && x3 != 1, {x1, x2, x3}, Integers]
输出:
{{x1 -> 2, x2 -> 2, x3 -> -1}}
这明显是一个错误输出,不知错在哪里?
谢谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询