MATLAB解方程组,救救菜鸟……小弟输入以下语句:syms x y a b;[x,y]=solve('0.5*x*(x^2+y^2)-x-a-4*b*x','0.5*y*(x^2+y^2)-x-a-2*b*(y-1)','2*x^2+(y-1)^2-4')结果提示如下:Error using ==> solveError,(in allvalues/rootseq) cannot evalu
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/30 10:17:04
![MATLAB解方程组,救救菜鸟……小弟输入以下语句:syms x y a b;[x,y]=solve('0.5*x*(x^2+y^2)-x-a-4*b*x','0.5*y*(x^2+y^2)-x-a-2*b*(y-1)','2*x^2+(y-1)^2-4')结果提示如下:Error using ==> solveError,(in allvalues/rootseq) cannot evalu](/uploads/image/z/6842513-65-3.jpg?t=MATLAB%E8%A7%A3%E6%96%B9%E7%A8%8B%E7%BB%84%2C%E6%95%91%E6%95%91%E8%8F%9C%E9%B8%9F%E2%80%A6%E2%80%A6%E5%B0%8F%E5%BC%9F%E8%BE%93%E5%85%A5%E4%BB%A5%E4%B8%8B%E8%AF%AD%E5%8F%A5%EF%BC%9Asyms+x+y+a+b%3B%5Bx%2Cy%5D%3Dsolve%28%270.5%2Ax%2A%28x%5E2%2By%5E2%29-x-a-4%2Ab%2Ax%27%2C%270.5%2Ay%2A%28x%5E2%2By%5E2%29-x-a-2%2Ab%2A%28y-1%29%27%2C%272%2Ax%5E2%2B%28y-1%29%5E2-4%27%29%E7%BB%93%E6%9E%9C%E6%8F%90%E7%A4%BA%E5%A6%82%E4%B8%8B%EF%BC%9AError+using+%3D%3D%3E+solveError%2C%28in+allvalues%2Frootseq%29+cannot+evalu)
MATLAB解方程组,救救菜鸟……小弟输入以下语句:syms x y a b;[x,y]=solve('0.5*x*(x^2+y^2)-x-a-4*b*x','0.5*y*(x^2+y^2)-x-a-2*b*(y-1)','2*x^2+(y-1)^2-4')结果提示如下:Error using ==> solveError,(in allvalues/rootseq) cannot evalu
MATLAB解方程组,救救菜鸟……
小弟输入以下语句:
syms x y a b;[x,y]=solve('0.5*x*(x^2+y^2)-x-a-4*b*x','0.5*y*(x^2+y^2)-x-a-2*b*(y-1)','2*x^2+(y-1)^2-4')
结果提示如下:
Error using ==> solve
Error,(in allvalues/rootseq) cannot evaluate with symbolic coefficients:
请问是为什么啊,怎么才能用a和b表示出x和y呢
MATLAB解方程组,救救菜鸟……小弟输入以下语句:syms x y a b;[x,y]=solve('0.5*x*(x^2+y^2)-x-a-4*b*x','0.5*y*(x^2+y^2)-x-a-2*b*(y-1)','2*x^2+(y-1)^2-4')结果提示如下:Error using ==> solveError,(in allvalues/rootseq) cannot evalu
可能英爱是这样子的:
syms a b;
solve('0.5*x*(x^2+y^2)-x-a-4*b*x=0','0.5*y*(x^2+y^2)-x-a-2*b*(y-1)=0');
sym('2*x^2+(y-1)^2-4')