38.5+24.08xy=12.04x^2; 38.5(4+x+y)+12.04xy^2=12.04(x/3+y)x^2,谁会解这个方程组,用软件也行.如matlab

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 11:58:03

38.5+24.08xy=12.04x^2; 38.5(4+x+y)+12.04xy^2=12.04(x/3+y)x^2,谁会解这个方程组,用软件也行.如matlab
38.5+24.08xy=12.04x^2; 38.5(4+x+y)+12.04xy^2=12.04(x/3+y)x^2,谁会解这个方程组,用软件也行.如matlab

38.5+24.08xy=12.04x^2; 38.5(4+x+y)+12.04xy^2=12.04(x/3+y)x^2,谁会解这个方程组,用软件也行.如matlab
先建立函数:
function q = myfun(p)
x=p(1);
y=p(2);
q(1)=38.5+24.08*x*y-12.04*x^2;
q(2)=38.5*(4+x+y)+12.04*x*y^2-12.04*(x/3+y)*x^2;
end
在运行一下命令:
x=fsolve('myfun',[0.5,0.5]',optimset('Display','off'))
得到的结果为:
x =
0.1868
-8.4647

x=0.1868,y=-8.4647

x 0.18682
y -8.4646