mathematica tag protected 我懂啥米意思看图我要怎么输入才可以解方程In[11]:= Solve[{3 x + 2 y = 15,3 x - 3 y = 12},{x,y}]During evaluation of In[11]:= Set::write:Tag Plus in 3 x+2 y is Protected.>>During evaluation of In[11]:= Set::

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 01:31:36

mathematica tag protected 我懂啥米意思看图我要怎么输入才可以解方程In[11]:= Solve[{3 x + 2 y = 15,3 x - 3 y = 12},{x,y}]During evaluation of In[11]:= Set::write:Tag Plus in 3 x+2 y is Protected.>>During evaluation of In[11]:= Set::
mathematica tag protected
我懂啥米意思
看图我要怎么输入才可以解方程
In[11]:= Solve[{3 x + 2 y = 15,3 x - 3 y = 12},{x,y}]
During evaluation of In[11]:= Set::write:Tag Plus in 3 x+2 y is Protected.>>
During evaluation of In[11]:= Set::write:Tag Plus in 3 x-3 y is Protected.>>
During evaluation of In[11]:= Solve::naqs:15&&12 is not a quantified system of equations and inequalities.>>
Out[11]= Solve[{15,12},{x,y}]
为什么错了 图无法上传

mathematica tag protected 我懂啥米意思看图我要怎么输入才可以解方程In[11]:= Solve[{3 x + 2 y = 15,3 x - 3 y = 12},{x,y}]During evaluation of In[11]:= Set::write:Tag Plus in 3 x+2 y is Protected.>>During evaluation of In[11]:= Set::
正确的语句是Solve[{3 x + 2 y == 15, 3 x - 3 y == 12}, {x, y}]
Mathematica里等于号是==
=是赋值号

楼上说得对,你在将3 x + 2 y 定义为15,相当于令Plus作用在3x和2y上成为15,而Plus是个保护函数
如果不把Plus保护起来,你甚至可以定义2+2=5,如:
Unprotect[Plus];
2+2=5;
Protect[Plus];
这在Mathematica里是允许的。